mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Simplify command execution in init-posix.sh
This commit is contained in:
parent
a0e19818a0
commit
c510d886a9
1 changed files with 1 additions and 5 deletions
|
|
@ -83,10 +83,6 @@ function wrapSafeChainCommand() {
|
||||||
# If the aikido command is not available, print a warning and run the original command
|
# If the aikido command is not available, print a warning and run the original command
|
||||||
printSafeChainWarning "$original_cmd"
|
printSafeChainWarning "$original_cmd"
|
||||||
|
|
||||||
# Remove the first argument (original_cmd) from $@
|
command "$@"
|
||||||
# so that "$@" now contains only the arguments passed to the original command
|
|
||||||
shift 1
|
|
||||||
|
|
||||||
command "$original_cmd" "$@"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue