From: Raphaƫl Jakse Date: Sun, 17 May 2020 09:41:55 +0000 (+0200) Subject: Ignore allow-root in update-prod when not running as root X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=3bc697854563ed609989417c21c43199b0b416a4;p=trivabble.git Ignore allow-root in update-prod when not running as root --- diff --git a/bin/upgrade-prod.sh b/bin/upgrade-prod.sh index c5c78f7..c57a7d8 100755 --- a/bin/upgrade-prod.sh +++ b/bin/upgrade-prod.sh @@ -38,7 +38,9 @@ fi NO_GIT=false while ! [ -z "${1+x}" ]; do - if [ "$1" = "--prod-public-dir" ]; then + if [ "$1" = "--allow-root" ]; then + shift + elif [ "$1" = "--prod-public-dir" ]; then export PROD_PUBLIC_DIR=$2 shift shift