aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/without-env4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/without-env b/bin/without-env
index 4f8fb14..685472d 100755
--- a/bin/without-env
+++ b/bin/without-env
@@ -64,6 +64,8 @@ eval "$(assert-arg "${3:-}" '--')"
eval "export $1=\"\$(echo \"\$$1\" | sed \"s|\$2:||g\")\""
shift # drop $1
shift # drop $2
-shift # drop --
+if [ "${1:-}" = '--' ]; then
+ shift # drop --
+fi
"$@"