]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Nicer profile number choose message.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 2 Jul 2004 20:45:48 +0000 (20:45 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 2 Jul 2004 20:45:48 +0000 (20:45 +0000)
svn-id: @4296

hwprofile

index fb336aebbbd0c46659cc39f17e71331ef8e8c360..e1ac2b0d523259a3959b6b8f0ba510b5f0654192 100755 (executable)
--- a/hwprofile
+++ b/hwprofile
@@ -205,7 +205,7 @@ while getopts adfhlsqr: opt "$@"; do
                        if [ -z "${PROFILE}" ]; then
                                if is_yes "${ASKFORPROFILE}"; then
                                        echo "Available profiles:";
-                                       PS3='Enter number profile: ';
+                                       PS3='Enter profile number: ';
                                        LISTA=$(ls ${PROFDIR}/*.desc 2> /dev/null);
                                        for i in ${LISTA}; do
                                                a=$(basename $i .desc);
@@ -214,12 +214,12 @@ while getopts adfhlsqr: opt "$@"; do
                                        LISTA1="${LISTA1} Default";
                
                                        select PROFILE in $LISTA1; do
-                                       if [ "${PROFILE}" ]; then
+                                       if [ -n "${PROFILE}" ]; then
                                                        break
                                                fi
                                        done
                
-                                       if [ "${PROFILE}" == "Default" ]; then
+                                       if [ "${PROFILE}" = "Default" ]; then
                                                PROFILE=
                                        fi
                                fi
This page took 0.028311 seconds and 4 git commands to generate.