Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save YordanGeorgiev/a83806eff5781f3f26622e51041ba21a to your computer and use it in GitHub Desktop.
Save YordanGeorgiev/a83806eff5781f3f26622e51041ba21a to your computer and use it in GitHub Desktop.
[bash test for empty string] how-to test for empty string in bash #bash #if #string #else
if [ -z "$Emails" ]; then
msg="Emails to set mail to not set !!! you need to export Emails=list-of-emails-to-send-mail-to-comma-delimited" ;
export exit_code=1 ;
doExit "$msg";
exit 1 ;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment