Browse Source

fix broken check which was introduced today

Ralf S. Engelschall 22 years ago
parent
commit
acceda3b2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      openpkg/rc

+ 1 - 1
openpkg/rc

@@ -333,7 +333,7 @@ for cmd in $cmds; do
         #fi
         #fi
 
 
         #   check whether command exists in script at all
         #   check whether command exists in script at all
-        cmdline=`grep "^%$cmd[^a-zA-Z0-9]" $rcdir/rc.$s_name`
+        cmdline=`grep "^%$cmd" $rcdir/rc.$s_name | sed -e "s;^%$cmd[^ 	].*;;"`
         if [ ".$cmdline" != . ]; then
         if [ ".$cmdline" != . ]; then
             #   parse local command options
             #   parse local command options
             cmdopts=`echo "$cmdline" | sed -e "s;^%$cmd *;;"`
             cmdopts=`echo "$cmdline" | sed -e "s;^%$cmd *;;"`