Adjusted talisman script to use talisman executable (expected in PATH).

This commit is contained in:
Stefan Gaiselmann 2023-01-18 11:42:13 +01:00
parent d5c3e38675
commit 2f49de8c8e

View File

@ -86,7 +86,7 @@ if [ "${TALISMAN_INTERACTIVE}" == "true" ]; then
[[ "${HOOKNAME}" == "pre-commit" ]] && exec < /dev/tty || echo_warning "talisman pre-push hook cannot be invoked in interactive mode currently" [[ "${HOOKNAME}" == "pre-commit" ]] && exec < /dev/tty || echo_warning "talisman pre-push hook cannot be invoked in interactive mode currently"
fi fi
CMD="/h//.talisman/bin/talisman_windows_amd64.exe ${DEBUG_OPTS} --githook ${HOOKNAME} ${INTERACTIVE}" CMD="$(which talisman) ${DEBUG_OPTS} --githook ${HOOKNAME} ${INTERACTIVE}"
echo_debug "ARGS are $@" echo_debug "ARGS are $@"
echo_debug "Executing: ${CMD}" echo_debug "Executing: ${CMD}"
${CMD} ${CMD}