mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Remove some debug logging
This commit is contained in:
parent
dd2894faab
commit
e88aede939
5 changed files with 0 additions and 4 deletions
0
packages/safe-chain/bin/aikido-python.js
Normal file → Executable file
0
packages/safe-chain/bin/aikido-python.js
Normal file → Executable file
0
packages/safe-chain/bin/aikido-python3.js
Normal file → Executable file
0
packages/safe-chain/bin/aikido-python3.js
Normal file → Executable file
|
|
@ -11,7 +11,6 @@ export function createPipPackageManager() {
|
||||||
runCommand: (args) => {
|
runCommand: (args) => {
|
||||||
const invocation = getCurrentPipInvocation();
|
const invocation = getCurrentPipInvocation();
|
||||||
const fullArgs = [...invocation.args, ...args];
|
const fullArgs = [...invocation.args, ...args];
|
||||||
console.debug('[safe-chain debug] runCommand:', invocation.command, fullArgs);
|
|
||||||
return runPip(invocation.command, fullArgs);
|
return runPip(invocation.command, fullArgs);
|
||||||
},
|
},
|
||||||
// For pip, rely solely on MITM proxy to detect/deny downloads from known registries.
|
// For pip, rely solely on MITM proxy to detect/deny downloads from known registries.
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@ remove_shim_from_path() {
|
||||||
echo "$PATH" | sed "s|$HOME/.safe-chain/shims:||g"
|
echo "$PATH" | sed "s|$HOME/.safe-chain/shims:||g"
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "[safe-chain debug] command -v {{AIKIDO_COMMAND}} (raw PATH): $(command -v {{AIKIDO_COMMAND}} 2>/dev/null || echo notfound)" >&2
|
|
||||||
echo "[safe-chain debug] PATH (raw): $PATH" >&2
|
|
||||||
if command -v {{AIKIDO_COMMAND}} >/dev/null 2>&1; then
|
if command -v {{AIKIDO_COMMAND}} >/dev/null 2>&1; then
|
||||||
# Remove shim directory from PATH when calling {{AIKIDO_COMMAND}} to prevent infinite loops
|
# Remove shim directory from PATH when calling {{AIKIDO_COMMAND}} to prevent infinite loops
|
||||||
PATH=$(remove_shim_from_path) exec {{AIKIDO_COMMAND}} "$@"
|
PATH=$(remove_shim_from_path) exec {{AIKIDO_COMMAND}} "$@"
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ function wrapSafeChainCommand() {
|
||||||
else
|
else
|
||||||
# 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"
|
||||||
|
|
||||||
command "$original_cmd" "$@"
|
command "$original_cmd" "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue