aboutsummaryrefslogtreecommitdiff
path: root/bin/without-env
diff options
context:
space:
mode:
Diffstat (limited to 'bin/without-env')
-rwxr-xr-xbin/without-env4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/without-env b/bin/without-env
index fd9d1e8..57c2d2e 100755
--- a/bin/without-env
+++ b/bin/without-env
@@ -57,8 +57,8 @@ while getopts 'h' flag; do
done
shift $((OPTIND - 1))
-eval "$(assert-arg "${1:-}" 'ENVVAR')"
-eval "$(assert-arg "${2:-}" 'PATH')"
+eval "$(assert-arg -- "${1:-}" 'ENVVAR')"
+eval "$(assert-arg -- "${2:-}" 'PATH')"
eval "export $1=\"\$(echo \"\$$1\" | sed \"s|\$2:||g\")\""
shift # drop $1