From 58e795ec28d5629534832446896ea27d0b576c00 Mon Sep 17 00:00:00 2001 From: kakamaika Date: Thu, 21 Apr 2022 19:06:59 +0300 Subject: [PATCH] Fix for --without-pull not working in install.sh ##build --- sys/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/install.sh b/sys/install.sh index 0c147751ec..5069bd1d08 100755 --- a/sys/install.sh +++ b/sys/install.sh @@ -32,6 +32,9 @@ while : ; do shift continue ;; + "--without-pull") + export WITHOUT_PULL=1 + ;; -*) # just for the penguin face case ARGS="${ARGS} $1" @@ -62,7 +65,7 @@ cd "$(dirname $0)"/.. pwd # update -if [ "$1" != "--without-pull" ]; then +if [ -z "$WITHOUT_PULL" ]; then if [ -d .git ]; then git branch | grep "^\* master" > /dev/null if [ $? = 0 ]; then @@ -76,9 +79,6 @@ if [ "$1" != "--without-pull" ]; then fi fi fi -else - export WITHOUT_PULL=1 - shift fi umask 0002