@@ -52,6 +52,19 @@ function validate_environment () {
...
@@ -52,6 +52,19 @@ function validate_environment () {
echo2 "Run 'curl https://google.com -o /tmp/out.html' to see if you are victim of this error. If you are sure it's not a problem, set ANTIDOTE_DISABLE_ENV_CHECK=1 to disable the check. "
echo2 "Run 'curl https://google.com -o /tmp/out.html' to see if you are victim of this error. If you are sure it's not a problem, set ANTIDOTE_DISABLE_ENV_CHECK=1 to disable the check. "
return 1
return 1
}
}
echo-n"$cis_bearer" | grep-P'\x0d'> /dev/null &&{
echo2 "Warning: Your cis_bearer variable contains carriage return character (0x0d). You must remove it or it will cause CIS API to return 400 or other error states. "
echo2 "ENV_CHECK will discard these bad characters and program will continue running. "
echo2 "If you don't want it, set ANTIDOTE_DISABLE_ENV_CHECK=1 to disable the check."