summaryrefslogtreecommitdiffstats
path: root/nix-script-switch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nix-script-switch.sh')
-rwxr-xr-xnix-script-switch.sh2
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" ]]