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

Do not call tput without $TERM #1864

Merged
merged 1 commit into from
Feb 19, 2021
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions tools/CACertificates/certGen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ function makeCNsubject()

function warn_certs_not_for_production()
{
tput smso
tput setaf 3
[ ! -z "$TERM" ] && tput smso
[ ! -z "$TERM" ] && tput setaf 3
echo "Certs generated by this script are not for production (e.g. they have hard-coded passwords of '1234'."
echo "This script is only to help you understand Azure IoT Hub CA Certificates."
echo "Use your official, secure mechanisms for this cert generation."
echo "Also note that these certs will expire in ${days_till_expire} days."
tput sgr0
[ ! -z "$TERM" ] && tput sgr0
}

function generate_root_ca()
Expand Down