]> git.saurik.com Git - apt.git/blobdiff - dselect/install
More fixes
[apt.git] / dselect / install
index 0806f7b354d7d66603bc61b254a84b451b4b0dc2..93a0f1e4455d5b9d368b0bb7dbe45118939a9b4a 100755 (executable)
@@ -20,15 +20,15 @@ yesno() {
        local ans def defp
        if [ "$2" ];then
                case $2 in
-                       Y|y)    defp="(Y/n)" def=y;;
-                       N|n)    defp="(y/N)" def=n;;
+                       Y|y)    defp="[Y/n]" def=y;;
+                       N|n)    defp="[y/N]" def=n;;
                        *)      echo "Bad default setting!" 1>&2; exit 1;;
                esac
        else
-               defp="(y/N)" def=n
+               defp="[y/N]" def=n
        fi
        while :;do
-               echo -n "$1$defp" 1>&3
+               echo -n "$1 $defp" 1>&3
                read ans
                case $ans in
                        Y|y|N|n)        break;;
@@ -72,7 +72,7 @@ if [ $RES -eq 0 ]; then
        ;;
      prompt)
        exec 3>&1
-       if [ `yesno "Do you want to erase the downloaded .deb files " y` = y ]; then
+       if [ `yesno "Do you want to erase the downloaded .deb files?" y` = y ]; then
           $APTGET clean && echo "Press enter to continue." && read RES && exit 0;
        fi
        ;;