X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fnpm-config.sh;h=06bf5d16245b8b55c1ad3df95fdd4271a27d875a;hb=a5fa8a32ab2f856fecc7505fdfd7a8e12df2c402;hp=968450200b382346fe3228d5bce173fcf3e94829;hpb=5fe90576c6f500ff92fbe7b76e42aad7d5d35fcd;p=releng%2Fglobal-jjb.git diff --git a/shell/npm-config.sh b/shell/npm-config.sh index 96845020..06bf5d16 100644 --- a/shell/npm-config.sh +++ b/shell/npm-config.sh @@ -39,14 +39,12 @@ do_config() { USER=$(echo "$CREDENTIAL" | cut -f1 -d:) PASS=$(echo "$CREDENTIAL" | cut -f2 -d:) - if [ -z "$USER" ] - then + if [ -z "$USER" ]; then echo "ERROR: No user provided" return 1 fi - if [ -z "$PASS" ] - then + if [ -z "$PASS" ]; then echo "ERROR: No password provided" return 1 fi