Commit fdd85038 authored by Ned Coltman's avatar Ned Coltman
Browse files

[install] use wget on 3.2 release, adapt folder check

parent 78484a74
......@@ -46,17 +46,17 @@ echo "(1/4) Downloading supplementary files (test script & cmake.opts). Make sur
echo "**************************************************************************************************************"
# make a new folder containing everything
mkdir $(pwd)/dumux
cd dumux
mkdir $(pwd)/DUMUX
cd DUMUX
# download the test script and the cmake.opts
if [ ! -f "test_dumux.sh" ]; then
wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/raw/master/scripts/test_dumux.sh
wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/raw/releases/3.2/scripts/test_dumux.sh
fi
chmod +x test_dumux.sh
if [ ! -f "cmake.opts" ]; then
wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/raw/master/cmake.opts
wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/raw/releases/3.2/cmake.opts
fi
if [ $? -ne 0 ]; then
......@@ -109,7 +109,9 @@ if [ ! -d "dumux" ]; then
git clone -b releases/3.2 https://git.iws.uni-stuttgart.de/dumux-repositories/dumux.git
else
echo "Skip cloning dumux because the folder already exists."
cd dumux
git checkout releases/3.2
cd ..
fi
# dumux-course
......@@ -117,7 +119,9 @@ if [ ! -d "dumux-course" ]; then
git clone -b releases/3.2 https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course.git
else
echo "Skip cloning dumux-course because the folder already exists."
cd dumux-course
git checkout releases/3.2
cd ..
fi
if [ $? -ne 0 ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment