Skip to content

Commit b9e40d8

Browse files
committed
Replace which with command in tput check
Signed-off-by: Clarence "Sparr" Risher <[email protected]>
1 parent 65891e2 commit b9e40d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-secrets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ install_hook() {
205205
echo "#!/usr/bin/env bash" > "${dest}"
206206
echo "git secrets --${cmd} -- \"\$@\"" >> "${dest}"
207207
chmod +x "${dest}"
208-
[ -t 1 ] && which tput >/dev/null && echo -n "$(tput setaf 2)$(tput sgr 0) "
208+
[ -t 1 ] && command -v tput &> /dev/null && echo -n "$(tput setaf 2)$(tput sgr 0) "
209209
echo "Installed ${hook} hook to ${dest}"
210210
}
211211

0 commit comments

Comments
 (0)