The script below is giving me grief! The error message says
/download.bash: line 16: syntax error near unexpected token `else'
./download.bash: line 16: `else wget "http://downloads.sourceforge.net/hibernate/hibernate-3.2.5.ga.zip?modtime=1185893922&big_mirror=1"
'
I think it must be a problem with the special characters in the URL. Can some make this script work?
Thanks,
Siegfried
#!/usr/bin/bash
#
# Begin commands to execute this file using bash with bash
# chmod +x download.bash
# ./download.bash
# End commands to execute this file using bash with bash
#
# $Log: download.bash,v $
# Revision 1.1 2007/12/25 05:48:31 Administrator
# Initial revision
#
#
if [ -e hibernate-3.2.5.ga.zip ]
then
echo "already got hibernate-3.2.5.ga.zip"
else wget "http://downloads.sourceforge.net/hibernate/hibernate-3.2.5.ga.zip?modtime=1185893922&big_mirror=1"
fi