Pārlūkot izejas kodu

fix logic by inversion in case variable does not exists at all

Ralf S. Engelschall 24 gadi atpakaļ
vecāks
revīzija
39d9c4b6ea
1 mainītis faili ar 2 papildinājumiem un 6 dzēšanām
  1. 2 6
      openpkg/rc

+ 2 - 6
openpkg/rc

@@ -168,13 +168,9 @@ shift
 if [ ".$scripts" = ".all" ]; then
     . $rcconf
     case "$openpkg_ignall" in
-        [Yy][Ee][Ss] | [Tt][Rr][Uu][Ee] | [Oo][Nn] | 1 ) 
-            scripts=`ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
-            ;;
-        * ) 
-            exit 0 
-            ;;
+	    [Nn][Oo] | [Ff][Aa][Ll][Ss][Ee] | [Oo][Ff][Ff] | 0 ) exit 0 ;;
     esac
+    scripts=`ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
 else
     if [ ! -f "$rcdir/rc.$scripts" ]; then
         echo "$0:ERROR: script \`$rcdir/rc.$scripts' not found" 1>&2