Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
1602f3b0d0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      update.sh

+ 1 - 0
update.sh

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