From 40c8c8f1fbf8271368b61e70710b25f6b7760a1a Mon Sep 17 00:00:00 2001 From: "m@mmmmarascio.xyz" Date: Mon, 8 Aug 2016 16:14:50 -0700 Subject: [PATCH] Fix typo in whatnow2 function "display" The attached patch fixes a typo in the whatnow2's "display" function. [ -z instand of [ -n for a check if a variable is empty. --- uip/whatnow2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/whatnow2.sh b/uip/whatnow2.sh index a4a2cc5..dbddb55 100755 --- a/uip/whatnow2.sh +++ b/uip/whatnow2.sh @@ -213,7 +213,7 @@ display() { mhaltmsg=`anno -list -component 'mhaltmsg' $mhmetafile` get_showproc - if [ -n "$mhaltmsg" ] + if [ -z "$mhaltmsg" ] then echo "no altmsg" 1>&2 exit 1 -- 1.7.10.4