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