Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from awslabs:master #3

Merged
merged 7 commits into from
Jun 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only emit terminal codes to terminal
Check for presence of tput and for stdout being a terminal before emitting terminal control codes.
Remove unnecessary dependence on `say`
  • Loading branch information
dannysauer committed Oct 13, 2022
commit 65891e23f341f159098300999edcce5983cd3ad8
3 changes: 2 additions & 1 deletion git-secrets
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ install_hook() {
echo "#!/usr/bin/env bash" > "${dest}"
echo "git secrets --${cmd} -- \"\$@\"" >> "${dest}"
chmod +x "${dest}"
say "$(tput setaf 2)✓$(tput sgr 0) Installed ${hook} hook to ${dest}"
[ -t 1 ] && which tput >/dev/null && echo -n "$(tput setaf 2)✓$(tput sgr 0) "
echo "Installed ${hook} hook to ${dest}"
}

install_all_hooks() {
Expand Down