diff --git a/heavy_script.sh b/heavy_script.sh index 82590268..ef62901a 100644 --- a/heavy_script.sh +++ b/heavy_script.sh @@ -28,7 +28,7 @@ git fetch count=0 for i in ${ARGS[@]} do - [[ "$i" == "--self-update" ]] && unset "ARGS[$count]" + [[ "$i" == "--self-update" ]] && unset "ARGS[$count]" && break ((count++)) done exec bash "$SCRIPTNAME" "${ARGS[@]}"