-n instead of ! -z

This commit is contained in:
James Tomasino 2019-01-28 15:55:40 -05:00
parent 95de7a48c6
commit 1e3772a514
1 changed files with 1 additions and 1 deletions

2
pb
View File

@ -45,7 +45,7 @@ die () {
code=1
fi
# output message to stdout or stderr based on code
if [ ! -z "${msg}" ]; then
if [ -n "${msg}" ]; then
if [ "${code}" -eq 0 ]; then
printf "%s\\n" "${msg}"
else