X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fgerrit-branch-lock.sh;h=8cfbe4a1af02d08f4a3174ebae34f70f59dfe05c;hb=0d623ea91ba7dab654e7c9026b10f25f6786ff43;hp=64d6ec9c30bc3cfa4f9925d310f6b0ef20447b66;hpb=df6bd253f8332cbc9454e61f3a323e0cea2b1ebd;p=releng%2Fglobal-jjb.git diff --git a/shell/gerrit-branch-lock.sh b/shell/gerrit-branch-lock.sh index 64d6ec9c..8cfbe4a1 100644 --- a/shell/gerrit-branch-lock.sh +++ b/shell/gerrit-branch-lock.sh @@ -8,6 +8,7 @@ # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html ############################################################################## +echo "---> gerrit-branch-lock.sh" # Generates a patch to lock|unlock a branch in Gerrit # # Assumes that the project repository was cloned via ssh and thus uses ssh to @@ -25,7 +26,7 @@ install_gerrit_hook() { ssh_port=$(git remote show origin | grep Fetch | grep 'ssh://' \ | awk -F'/' '{print $3}' | awk -F':' '{print $2}') - if [ -z $ssh_url ]; then + if [ -z "$ssh_url" ]; then echo "ERROR: Gerrit SSH URL not found." exit 1 fi