]> Zhao Yanbai Git Server - minix.git/commitdiff
simpler /usr/bin/vi check
authorBen Gras <ben@minix3.org>
Thu, 1 Feb 2007 17:09:49 +0000 (17:09 +0000)
committerBen Gras <ben@minix3.org>
Thu, 1 Feb 2007 17:09:49 +0000 (17:09 +0000)
commands/elvis/Makefile

index 17c36bfc85766f10debcbf2120dd7ee629235bd8..a0118c2ccfaf48b729b7209330f0a219d8b43cc5 100755 (executable)
@@ -72,7 +72,7 @@ install:      /usr/bin/elvis \
        install -cs -o bin elvis $@
 
 /usr/bin/vi:   /usr/bin/elvis
-       if [ ! -f $@ -a ! -s $@ ];      \
+       if [ ! -x $@ ]; \
        then    install -l $? $@ ;      \
        fi