mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iop: genconfig: new way of testing access to repos
This commit is contained in:
parent
e4c6906c49
commit
5e6279c872
1 changed files with 7 additions and 12 deletions
|
|
@ -85,17 +85,12 @@ function genconfig {
|
||||||
mediatekAllowed=0
|
mediatekAllowed=0
|
||||||
wifilifeAllowed=0
|
wifilifeAllowed=0
|
||||||
|
|
||||||
allowedRepos="$(ssh -o ConnectTimeout=5 git@private.inteno.se 2>/dev/null | grep -w 'R\|W' | awk '{print$NF}')"
|
git ls-remote git@dev.iopsys.eu:broadcom/bcmcreator.git -q 2>/dev/null && bcmAllowed=1
|
||||||
for repo in $allowedRepos; do
|
git ls-remote git@dev.iopsys.eu:mediatek/linux.git -q 2>/dev/null && mediatekAllowed=1
|
||||||
case $repo in
|
git ls-remote git@dev.iopsys.eu:dialog/natalie-dect-12.26.git -q 2>/dev/null && natalieAllowed=1
|
||||||
bcmkernel) bcmAllowed=1 ;;
|
git ls-remote git@dev.iopsys.eu:iopsys/endptmngr.git -q 2>/dev/null && endptAllowed=1
|
||||||
ice-client) iceAllowed=1 ;;
|
git ls-remote git@dev.iopsys.eu:iopsys/wifilife.git -q 2>/dev/null && wifilifeAllowed=1
|
||||||
endptcfg) endptAllowed=1 ;;
|
git ls-remote git@private.inteno.se:ice-client.git -q -q 2>/dev/null && iceAllowed=1
|
||||||
natalie-dect*) natalieAllowed=1 ;;
|
|
||||||
linux) mediatekAllowed=1 ;;
|
|
||||||
wifilife) wifilifeAllowed=1 ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
v() {
|
v() {
|
||||||
|
|
@ -176,7 +171,7 @@ function genconfig {
|
||||||
|
|
||||||
setup_dirs()
|
setup_dirs()
|
||||||
{
|
{
|
||||||
if ssh -o ConnectTimeout=5 git@private.inteno.se 2>/dev/null | grep -qw ${CUSTREPO:22}; then
|
if git ls-remote $CUSTREPO -q 2>/dev/null; then
|
||||||
if [ ! -d "$CUSTPATH" ]; then
|
if [ ! -d "$CUSTPATH" ]; then
|
||||||
git clone "$CUSTREPO" "$CUSTPATH"
|
git clone "$CUSTREPO" "$CUSTPATH"
|
||||||
elif [ $IMPORT -eq 1 ]; then
|
elif [ $IMPORT -eq 1 ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue