diff --git a/dot_talisman/bin/executable_talisman_hook_script b/dot_talisman/bin/executable_talisman_hook_script index 69c09aa..84d1cc8 100644 --- a/dot_talisman/bin/executable_talisman_hook_script +++ b/dot_talisman/bin/executable_talisman_hook_script @@ -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" 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 "Executing: ${CMD}" ${CMD}