]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
fix in termput()
authorArtur Frysiak <artur@frysiak.net>
Fri, 3 Sep 1999 07:42:29 +0000 (07:42 +0000)
committerArtur Frysiak <artur@frysiak.net>
Fri, 3 Sep 1999 07:42:29 +0000 (07:42 +0000)
svn-id: @511

rc.d/init.d/functions

index cbcf7b959bbb506988bd11766af21654a550c1b2..9130bc2bf212dcb478aa87f39400e7f38e97c1d0 100644 (file)
@@ -1,7 +1,7 @@
 # functions    This file contains functions to be used by most or all
 #              shell scripts in the /etc/init.d directory.
 #
-# $Id: functions,v 1.24 1999/09/03 07:24:27 wiget Exp $
+# $Id: functions,v 1.25 1999/09/03 07:42:29 wiget Exp $
 #
 # Author:      Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
 # Hacked by:    Greg Galloway and Marc Ewing
@@ -20,7 +20,7 @@ termput()
        if [ "$COLOR_INIT" == "no" ]; then
                :
        elif [ ! -d /usr/share/terminfo ] || \
-            [ ! [ -x /usr/bin/tput -o -x /bin/tput ]; then
+            ! ( [ -x /usr/bin/tput ] || [ -x /bin/tput ] ) ; then
                 if [ "$2" == "1" ]; then echo -ne "\033[0;31m"
                 elif [ "$2" == "2" ]; then echo -ne "\033[0;32m"
                 elif [ "$2" == "5" ]; then echo -ne "\033[0;35m"
This page took 0.289879 seconds and 4 git commands to generate.