Simplify command execution in init-posix.sh

This commit is contained in:
Graeme Chapman 2025-12-31 10:57:08 +00:00 committed by GitHub
parent a0e19818a0
commit c510d886a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,10 +83,6 @@ function wrapSafeChainCommand() {
# If the aikido command is not available, print a warning and run the original command
printSafeChainWarning "$original_cmd"
# Remove the first argument (original_cmd) from $@
# so that "$@" now contains only the arguments passed to the original command
shift 1
command "$original_cmd" "$@"
command "$@"
fi
}