diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-06-16 22:47:31 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-06-16 22:47:31 +0200 |
commit | 46cfba50e351c41765b60fd6b83f5fbc7676477c (patch) | |
tree | 364d5db6e6375799c514989354e21602edb7be23 | |
parent | de2344cad6f3ee0b32332a16748a46f248d46c1a (diff) |
Fix: Argument parsing for nixos-rebuild in switch command
-rwxr-xr-x | nix-script-switch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-script-switch.sh b/nix-script-switch.sh index ae1bd93..6353280 100755 --- a/nix-script-switch.sh +++ b/nix-script-switch.sh @@ -59,7 +59,7 @@ do esac done -ARGS=$(echo $* | sed -r 's/(.*)\-\-(.*)/\2/') +ARGS=$(echo $* | sed -r 's/(.*)(\-\-(.*)|$)/\2/') stdout "ARGS = $ARGS" if [[ -z "$WD" ]] |