about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-03-29 23:23:16 +0100
committerSoispha <soispha@vhack.eu>2024-03-29 23:23:16 +0100
commitf924002d8a1545c8fed14e3456ae04244fda1123 (patch)
tree4b0bda7510f546a20666256d657c38ccbbdacb07
parentfix(pkgs/scripts/fupdate): Avoid polluting the arguments of the update script (diff)
downloadnixos-config-f924002d8a1545c8fed14e3456ae04244fda1123.tar.gz
nixos-config-f924002d8a1545c8fed14e3456ae04244fda1123.zip
fix(pkgs/scripts/fupdate): Ignore args after `--`
-rwxr-xr-xsys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh b/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh
index c28f363f..590505cc 100755
--- a/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh
+++ b/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh
@@ -155,6 +155,9 @@ for input in "$@"; do
         ;;
     "--")
         end_of_cli_options=true
+
+        # Stop processing args after that marker.
+        break
         ;;
     esac
     [ "$end_of_cli_options" = "true" ] && break