From 3bc697854563ed609989417c21c43199b0b416a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Jakse?= Date: Sun, 17 May 2020 11:41:55 +0200 Subject: [PATCH] Ignore allow-root in update-prod when not running as root --- bin/upgrade-prod.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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