mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
fix: Allow running commands if safe-chain npm package is not installed
This commit is contained in:
parent
acb4aa1a13
commit
a0e19818a0
1 changed files with 4 additions and 0 deletions
|
|
@ -83,6 +83,10 @@ 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 $@
|
||||||
|
# so that "$@" now contains only the arguments passed to the original command
|
||||||
|
shift 1
|
||||||
|
|
||||||
command "$original_cmd" "$@"
|
command "$original_cmd" "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue