Skip to content

Commit

Permalink
Replace which with command in tput check
Browse files Browse the repository at this point in the history
Signed-off-by: Clarence "Sparr" Risher <[email protected]>
  • Loading branch information
sparr committed Jun 20, 2023
1 parent 65891e2 commit b9e40d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-secrets
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ install_hook() {
echo "#!/usr/bin/env bash" > "${dest}"
echo "git secrets --${cmd} -- \"\$@\"" >> "${dest}"
chmod +x "${dest}"
[ -t 1 ] && which tput >/dev/null && echo -n "$(tput setaf 2)$(tput sgr 0) "
[ -t 1 ] && command -v tput &> /dev/null && echo -n "$(tput setaf 2)$(tput sgr 0) "
echo "Installed ${hook} hook to ${dest}"
}

Expand Down

0 comments on commit b9e40d8

Please sign in to comment.