X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fgerrit-branch-lock.sh;h=8cfbe4a1af02d08f4a3174ebae34f70f59dfe05c;hb=e1a8dc64cfe10360ebdcadd28806adf800760ce7;hp=f884c1d5f820aa9f14dadb90defe9b14b0edb188;hpb=bc5892ef503dc4039aa0aae4043e5c9b2cc9a363;p=releng%2Fglobal-jjb.git diff --git a/shell/gerrit-branch-lock.sh b/shell/gerrit-branch-lock.sh index f884c1d5..8cfbe4a1 100644 --- a/shell/gerrit-branch-lock.sh +++ b/shell/gerrit-branch-lock.sh @@ -26,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