Fix infinite loop when parsing update.sh arguments

update.sh would enter an infinite loop when arguments (e.g. --ours, --check). This is due to a missing `shift` statement that has now been added. This fixes #1193.
master
Benjamin Roberts 2018-07-04 23:10:30 +10:00 committed by GitHub
parent e352604a9b
commit 1602f3b0d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ while (($#)); do
MERGE_STRATEGY=ours MERGE_STRATEGY=ours
;; ;;
esac esac
shift
done done
[[ ! -f mailcow.conf ]] && { echo "mailcow.conf is missing"; exit 1;} [[ ! -f mailcow.conf ]] && { echo "mailcow.conf is missing"; exit 1;}