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:
parent
95de7a48c6
commit
1e3772a514
2
pb
2
pb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user