diff options
Diffstat (limited to 'sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh')
-rwxr-xr-x | sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh b/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh index 992a451a..c28f363f 100755 --- a/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh +++ b/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh @@ -163,6 +163,21 @@ done case "$1" in "flake") shift 1 + + # Filter out fupdate specific flags + while [ "$1" != "--" ]; do + # FIXME: This check allows to add a flag multiple times, but this should probably + # not be allowed <2024-03-29> + case "$1" in + "--no-script" | "-n") + shift 1; + ;; + *) + break; + ;; + esac + done + [ "$1" = "--" ] && shift 1 main "$@" ;; |