case tag scripting issues
Chadley Wilson
chadley at pinteq.co.za
Mon Jan 10 15:45:48 UTC 2005
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
=====================================
More information about the fedora-list
mailing list