about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-24 11:24:32 +0100
committerSoispha <soispha@vhack.eu>2024-02-24 11:25:16 +0100
commitb0ac35f289b232951b8bee94253abe46b0ce86ed (patch)
tree7b28be1fb76fa9f0cfd8d0f718440010e98df356
parentfeat(hm/pkgs/fupdate): Allow passing arguments to the update script (diff)
downloadnixos-config-b0ac35f289b232951b8bee94253abe46b0ce86ed.tar.gz
nixos-config-b0ac35f289b232951b8bee94253abe46b0ce86ed.zip
fix(hm/pkgs/fupdate): Don't pass '--' to child command
Diffstat (limited to '')
-rwxr-xr-xhm/soispha/pkgs/scripts/apps/fupdate.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/hm/soispha/pkgs/scripts/apps/fupdate.sh b/hm/soispha/pkgs/scripts/apps/fupdate.sh
index afc3ab13..0032be4b 100755
--- a/hm/soispha/pkgs/scripts/apps/fupdate.sh
+++ b/hm/soispha/pkgs/scripts/apps/fupdate.sh
@@ -151,11 +151,13 @@ done
 case "$1" in
 "flake")
     shift 1
+    [ "$1" = "--" ] && shift 1;
     main "$@"
     ;;
 *)
     command="$1"
     shift 1
+    [ "$1" = "--" ] && shift 1;
     if which update-"$command" >/dev/null 2>&1; then
             update-"$command" "$@"
     else