We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65891e2 commit b9e40d8Copy full SHA for b9e40d8
git-secrets
@@ -205,7 +205,7 @@ install_hook() {
205
echo "#!/usr/bin/env bash" > "${dest}"
206
echo "git secrets --${cmd} -- \"\$@\"" >> "${dest}"
207
chmod +x "${dest}"
208
- [ -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) "
209
echo "Installed ${hook} hook to ${dest}"
210
}
211
0 commit comments