File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,11 +117,13 @@ if [ "$SETUP_GLOBAL_HOOKS" = "true" ]; then
117117 # Define the Aikido hook snippet
118118 AIKIDO_HOOK_START=" # --- Aikido local scanner ---"
119119 AIKIDO_HOOK_END=" # --- End Aikido local scanner ---"
120- AIKIDO_HOOK_SNIPPET=" ${AIKIDO_HOOK_START}
121- [ -x \" ${INSTALL_DIR} /${BINARY_NAME} \" ] || { echo \" Aikido local scanner not found at ${INSTALL_DIR} /${BINARY_NAME} \" ; exit 1; }
122- REPO_ROOT=\"\$ (git rev-parse --show-toplevel)\"
123- \" ${INSTALL_DIR} /${BINARY_NAME} \" pre-commit-scan \"\$ REPO_ROOT\"
124- ${AIKIDO_HOOK_END} "
120+ AIKIDO_HOOK_SNIPPET=" " "
121+ ${AIKIDO_HOOK_START}
122+ [ -x \" ${INSTALL_DIR} /${BINARY_NAME} \" ] || { echo \" Aikido local scanner not found at ${INSTALL_DIR} /${BINARY_NAME} \" ; exit 1; }
123+ REPO_ROOT=\"\$ (git rev-parse --show-toplevel)\"
124+ \" ${INSTALL_DIR} /${BINARY_NAME} \" pre-commit-scan \"\$ REPO_ROOT\"
125+ ${AIKIDO_HOOK_END}
126+ " " "
125127
126128 # Check if hook file exists and if Aikido snippet is already present
127129 if [ -f " $PRECOMMIT_HOOK " ]; then
You can’t perform that action at this time.
0 commit comments