mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Merge branch 'main' into feat/pdm-support
This commit is contained in:
commit
bf2d37d114
14 changed files with 113 additions and 29 deletions
|
|
@ -113,8 +113,10 @@ function wrapSafeChainCommand() {
|
|||
fi
|
||||
|
||||
if command -v safe-chain > /dev/null 2>&1; then
|
||||
# If the aikido command is available, just run it with the provided arguments
|
||||
safe-chain "$@"
|
||||
# If the aikido command is available, just run it with the provided arguments.
|
||||
# Unset PKG_EXECPATH so the yao-pkg bootstrap inside the safe-chain binary doesn't
|
||||
# mistake argv[1] for a script path and try to resolve it against cwd.
|
||||
(unset PKG_EXECPATH; safe-chain "$@")
|
||||
else
|
||||
# If the aikido command is not available, print a warning and run the original command
|
||||
printSafeChainWarning "$original_cmd"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue