Просмотр исходного кода

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

Arch Librarian лет назад: 22
Родитель
Сommit
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
 
 # Yes/No Prompter
-function yesno() {
+yesno() {
 # $1 = prompt
 # $2 = default(y)
 	local ans def defp

+ 1 - 1
dselect/update

@@ -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