Author: nextgens
Date: 2006-05-18 15:20:12 +0000 (Thu, 18 May 2006)
New Revision: 8772
Modified:
trunk/apps/installer/installclasspath/linux/update.sh
Log:
installer: New *NIX update script:
----- Anonymous ----- 2006.05.18 - 05:53:17GMT -----
I've had some issues with the update.sh bash script on OSX...
+ test for wget thinks wget is present though it isn't
-if [[ "$(which wget)" == "" ]]
+if [ ! -x "$(which wget)" ]
+ using curl needs the --insecure (as in bug 223 for wget)
+ test logic for "debug" on command line seems backward ?
if [[ "$1" != "debug" ]]
then
THEMASK="-o /dev/null"
fi
adding THEMASK to the curl command writes files to /dev/null, don't know what
wget does with it.
Modified: trunk/apps/installer/installclasspath/linux/update.sh
===================================================================
--- trunk/apps/installer/installclasspath/linux/update.sh 2006-05-18
14:57:49 UTC (rev 8771)
+++ trunk/apps/installer/installclasspath/linux/update.sh 2006-05-18
15:20:12 UTC (rev 8772)
@@ -8,12 +8,12 @@
THEMASK="-o /dev/null"
fi
-if [[ "$(which wget)" == "" ]]
+if [[ ! -x "$(which wget)" ]]
then
WGET=0
- DOWNLOADER="curl -q -f -L $THEMASK -O "
- DOWNLOADER2="curl -q -f -L $THEMASK -O
http://downloads.freenetproject.org/alpha/freenet-cvs-snapshot.jar"
- DOWNLOADER3="curl -q -f -L $THEMASK -O "
+ DOWNLOADER="curl --insecure -q -f -L -O "
+ DOWNLOADER2="curl --insecure -q -f -L -O
http://downloads.freenetproject.org/alpha/freenet-cvs-snapshot.jar"
+ DOWNLOADER3="curl --insecure -q -f -L -O "
else
WGET=1
# see https://bugs.freenetproject.org/view.php?id=223