init-posix: preserve arguments when exec'ing the original_cmd

This commit is contained in:
Uriel Corfa 2026-01-08 09:56:59 +01:00
parent 3bfca9e296
commit 4e894dd0fd
No known key found for this signature in database

View file

@ -80,7 +80,7 @@ function wrapSafeChainCommand() {
# If the original command is not available, don't try to wrap it: invoke it # If the original command is not available, don't try to wrap it: invoke it
# transparently, so the shell can report errors as if this wrapper didn't # transparently, so the shell can report errors as if this wrapper didn't
# exist. # exist.
command $@ command "$@"
return $? return $?
fi fi