]> git.saurik.com Git - apt.git/commitdiff
Fixed bashisms
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:24 +0000 (16:52 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:24 +0000 (16:52 +0000)
Author: jgg
Date: 1999-01-11 23:56:11 GMT
Fixed bashisms

dselect/install
dselect/update

index e1bea340d07ba67593839c78ff8633a7eecc39b3..db96a80550be3a6eeadee61ddb39ba61c2908b46 100755 (executable)
@@ -12,7 +12,7 @@ eval $RES
 set +e
 
 # Yes/No Prompter
-function yesno() {
+yesno() {
 # $1 = prompt
 # $2 = default(y)
        local ans def defp
index 3260278b66c6dba3776923ec51ff8821ed1f6a70..ec5e78cc232d4874a6d720ca12bb5b6097e8f7c9 100755 (executable)
@@ -22,7 +22,7 @@ $APTCACHE dumpavail > $CACHEDIR/available
 $DPKG --update-avail $CACHEDIR/available
 rm -f $CACHEDIR/available
 
-if [ $PROMPT == "yes" ]; then
+if [ $PROMPT = "yes" ]; then
    echo "Press enter to continue." && read RES;
 fi