Created
August 17, 2018 08:35
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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