Skip to content

Commit

Permalink
Set interactive or debug mode only if variables are set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
tinamthomas committed Sep 3, 2020
1 parent 648e456 commit 4a19eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions global_install_scripts/talisman_hook_script.bash
Expand Up @@ -73,9 +73,9 @@ if [[ -f .talisman_skip || -f .talisman_skip.${HOOKNAME} ]]; then
fi

DEBUG_OPTS=""
[[ -n "${TALISMAN_DEBUG}" ]] && DEBUG_OPTS="-d"
[[ "${TALISMAN_DEBUG}" == "true" ]] && DEBUG_OPTS="-d"
INTERACTIVE=""
[[ -n "${TALISMAN_INTERACTIVE}" ]] && INTERACTIVE="-i"
[[ "${TALISMAN_INTERACTIVE}" == "true" ]] && INTERACTIVE="-i"

CMD="${TALISMAN_BINARY} ${DEBUG_OPTS} --githook ${HOOKNAME} ${INTERACTIVE}"
echo_debug "ARGS are $@"
Expand Down

0 comments on commit 4a19eac

Please sign in to comment.