2
0
Эх сурвалжийг харах

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.
Benjamin Roberts 7 жил өмнө
parent
commit
1602f3b0d0
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      update.sh

+ 1 - 0
update.sh

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