mirror of
https://tildegit.org/envs/pb.git
synced 2025-04-03 13:55:52 +00:00
-n instead of ! -z
This commit is contained in:
parent
95de7a48c6
commit
1e3772a514
1 changed files with 1 additions and 1 deletions
2
pb
2
pb
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue