case tag scripting issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings

Could some one please help here:
Why does the second prompt  in this part of the script skip?

this is what I get in the shell:

Installing the Kernel, Do you want continue? (Y/N) y       
Installing the Kernel Source, Do you want continue? (Y/N) Please enter Y or N


This is the section of the script.



read -n 1 -p "Installing the Kernel, Do you want continue? (Y/N) " YesNo


        case $YesNo in

                y|Y)
                        rpm -i kernel-2.6*.i686.rpm
                        ;;

                n|N)

                        exit 0
                        ;;

                *)
                        echo -e "Please enter Y or N"
                        ;;
        esac




read -n 1 -p "Installing the Kernel Source, Do you want continue? (Y/N) " 
YesNo


        case $YesNo in

                y|Y)
                        rpm -i kernel-2.6*.src.rpm
                        ;;

                n|N)

                        exit 0
                        ;;

                *)
                        echo -e "Please enter Y or N"
                        ;;
        esac

-- 
Chadley Wilson
Redhat Certified Technician 
Cert Number: 603004708291270
Pinnacle Micro
Manufacturers of Proline Computers
====================================
Exercise freedom, Use LINUX
=====================================


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux