Fixed directory issues in the setup script

This commit is contained in:
LexManos 2012-03-05 20:01:04 -08:00
parent 66cac8ea7d
commit 1c77b62704
1 changed files with 7 additions and 5 deletions

View File

@ -17,15 +17,17 @@ if [ -d src ] ; then
if [ "$var" != "y" ]; then exit ; fi if [ "$var" != "y" ]; then exit ; fi
fi fi
if [ ! -f ../runtime/bin/fernflower.jar ] if [ ! -f ./runtime/bin/fernflower.jar ]
then then
python download_fernflower.py pushd forge
python download_fernflower.py
popd
fi fi
if [ ! -f ../runtime/bin/fernflower.jar ] if [ ! -f ./runtime/bin/fernflower.jar ]
then then
echo "Failed to download fernflower, install it manually and re-run setup." echo "Failed to download fernflower, install it manually and re-run setup."
exit 1 exit 1
fi fi
rm -rf src src_work src_forge rm -rf src src_work src_forge