X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-verify-build-nodes.sh;fp=shell%2Fjjb-verify-build-nodes.sh;h=9c5bfecb48d98c3978a7a53fd8a1a049f0d82516;hb=5beb45586451cb772982de881cd09fd97360be87;hp=93d85be8142ee5a8a59a048110160212c7781d6f;hpb=61dc9c129cc8bf0618b03d543c406e5dc1f12e61;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-verify-build-nodes.sh b/shell/jjb-verify-build-nodes.sh index 93d85be8..9c5bfecb 100644 --- a/shell/jjb-verify-build-nodes.sh +++ b/shell/jjb-verify-build-nodes.sh @@ -34,20 +34,20 @@ jjbdir="jjb" # function to test if the argument is empty, # is two double quotes, or has unwanted suffix isBadLabel () { - local label="$1" - [[ -z "$label" ]] || [[ $label = "\"\"" ]] || [[ $label = *"$suffix" ]] + local label="$1" + [[ -z "$label" ]] || [[ $label = "\"\"" ]] || [[ $label = *"$suffix" ]] } # function to search an array for a value # $1 is value # $2 is array, passed via ${array[@]} isValueInArray () { - local e match="$1" - shift - for e; do - [[ "$e" == "$match" ]] && return 0 - done - return 1 + local e match="$1" + shift + for e; do + [[ "$e" == "$match" ]] && return 0 + done + return 1 } # check prereqs