From a0e19818a095b3e5241494d1c8f277a15658d74c Mon Sep 17 00:00:00 2001 From: Graeme Chapman Date: Wed, 31 Dec 2025 10:18:58 +0000 Subject: [PATCH] fix: Allow running commands if safe-chain npm package is not installed --- .../src/shell-integration/startup-scripts/init-posix.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/safe-chain/src/shell-integration/startup-scripts/init-posix.sh b/packages/safe-chain/src/shell-integration/startup-scripts/init-posix.sh index f22f79b..7085465 100644 --- a/packages/safe-chain/src/shell-integration/startup-scripts/init-posix.sh +++ b/packages/safe-chain/src/shell-integration/startup-scripts/init-posix.sh @@ -83,6 +83,10 @@ 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" "$@" fi }