Use -n instead of ! -z in test

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
Eric F Crist 2019-01-16 15:46:58 -06:00
parent a66bb93c75
commit f6b35473b2
No known key found for this signature in database
GPG Key ID: 72964219390D0D0E

View File

@ -307,7 +307,7 @@ clean_temp() {
prog_exit() {
ESTAT=0
[ ! -z "$1" ] && ESTAT=$1
[ -n "$1" ] && ESTAT=$1
(stty echo 2>/dev/null) || set -o echo
echo "" # just to get a clean line
exit "$ESTAT"