Fix typo in whatnow2 function "display"
authorm@mmmmarascio.xyz <m@mmmmarascio.xyz>
Mon, 8 Aug 2016 23:14:50 +0000 (16:14 -0700)
committerPhilipp Takacs <philipp@bureaucracy.de>
Tue, 9 Aug 2016 11:26:12 +0000 (13:26 +0200)
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

index a4a2cc5..dbddb55 100755 (executable)
@@ -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