1
0
mirror of https://tildegit.org/tomasino/pb.git synced 2024-12-23 11:35:09 +01:00

-n instead of ! -z

This commit is contained in:
James Tomasino 2019-01-28 15:55:40 -05:00
parent 95de7a48c6
commit 1e3772a514

2
pb
View File

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