diff options
author | 2016-11-09 00:35:50 +0100 | |
---|---|---|
committer | 2016-11-09 09:13:35 +0100 | |
commit | a448d00f0429fec60d331ce1ac401ecfcc9de3e5 (patch) | |
tree | 4b66aea26a920f475f6264550b0167af76aaac19 /jjb/common/include-agl-select.sh | |
parent | e0ac2518bafc0506ee2d8e363620397a7fa09dc0 (diff) |
copy link destination and fix bash script
Change-Id: I46b30485db01b52af094f51f3becffc4a6408e70
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common/include-agl-select.sh')
-rw-r--r-- | jjb/common/include-agl-select.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jjb/common/include-agl-select.sh b/jjb/common/include-agl-select.sh index 23e90def..0ba16846 100644 --- a/jjb/common/include-agl-select.sh +++ b/jjb/common/include-agl-select.sh @@ -5,11 +5,11 @@ ## Select what to build / inject the rev from the gerrit env variable ################################################################################ -HANDLED=false +HANDLED="no" # Projects in AGL/* ################### -if test !$HANDLED -a $(echo "$TARGETPROJECT" | grep -q "^AGL/"); then +if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "^AGL/"); then MYPROJECT=`echo $TARGETPROJECT | sed -e "s#AGL/##g"` @@ -31,13 +31,13 @@ if test !$HANDLED -a $(echo "$TARGETPROJECT" | grep -q "^AGL/"); then cd .. fi fi - HANDLED=true + HANDLED="yes" fi # Projects in src/* ################### -if test !$HANDLED -a $(echo "$TARGETPROJECT" | grep -q "^src/"); then +if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "^src/"); then MYPROJECT=`echo $TARGETPROJECT | sed -e "s#src/##g"` @@ -57,7 +57,7 @@ fi # Projects in staging/* ####################### -if test !$HANDLED -a $(echo "$TARGETPROJECT" | grep -q "^staging/"); then +if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "^staging/"); then MYPROJECT=`echo $TARGETPROJECT | sed -e "s#staging/##g"` @@ -75,7 +75,7 @@ exit 0 fi -if !$HANDLED; then +if [[ ! x"yes" = x"$HANDLED" ]] ; then echo "COULD NOT SELECT PROJECT, something is wrong!" echo "$TARGETPROJECT" echo "" |