Ignore allow-root in update-prod when not running as root

This commit is contained in:
Raphaël Jakse 2020-05-17 11:41:55 +02:00
parent d9a534e294
commit 3bc6978545
1 changed files with 3 additions and 1 deletions

View File

@ -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