Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.62 kB
#!/bin/bash
: ${1:?"Must specify distribution ZIP file to install. Ex: 'forge-install target/forge-distribution-1.0.0-SNAPSHOT.zip"}
: ${FORGE_HOME:?"FORGE_HOME must be set."}
TARGET=$1
DEV=`dirname $FORGE_HOME`
if [ -n $TARGET -a -f $TARGET ]
then
echo $TARGET
cp $TARGET $DEV/forge.zip
cd $DEV
if [ -e forge ]
then
rm -rf forge
fi
unzip forge.zip
rm forge.zip
#there is only one... versioned "folder" name so rename it to forge
mv forge* forge
chmod -R 755 forge
else
echo "Must specify Forge distribution ZIP file to install."
echo "Ex: 'forge-install forge-distribution-1.0.0-SNAPSHOT.zip'"
fi
Jump to Line
Something went wrong with that request. Please try again.