Преглед изворни кода

Fixed bashisms
Author: jgg
Date: 1999-01-11 23:56:11 GMT
Fixed bashisms

Arch Librarian пре 22 година
родитељ
комит
8e7e7700e7
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      dselect/install
  2. 1 1
      dselect/update

+ 1 - 1
dselect/install

@@ -12,7 +12,7 @@ eval $RES
 set +e
 set +e
 
 
 # Yes/No Prompter
 # Yes/No Prompter
-function yesno() {
+yesno() {
 # $1 = prompt
 # $1 = prompt
 # $2 = default(y)
 # $2 = default(y)
 	local ans def defp
 	local ans def defp

+ 1 - 1
dselect/update

@@ -22,7 +22,7 @@ $APTCACHE dumpavail > $CACHEDIR/available
 $DPKG --update-avail $CACHEDIR/available
 $DPKG --update-avail $CACHEDIR/available
 rm -f $CACHEDIR/available
 rm -f $CACHEDIR/available
 
 
-if [ $PROMPT == "yes" ]; then
+if [ $PROMPT = "yes" ]; then
    echo "Press enter to continue." && read RES;
    echo "Press enter to continue." && read RES;
 fi
 fi