[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Hi
I am trying to write a script. However I have got something wrong as
whatever answer I give, it runs. (I checked out the logic with the
commented out if, and that worked, so it is my syntax).
read ans
echo $ans
if [ "$ans"=="n" ]
#if [ 1 -eq 1 ]
then
#echo [ $ans=="n"]
echo "Wrong Java"
echo "You will have to download the correct Java"
exit 1;
fi
Thanks in advance
and yes it is for the train set!
Peter L-J
--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html