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.
This commit is contained in:
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

View File

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