Skip to content
Snippets Groups Projects

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

Merged Ned Coltman requested to merge cleanup/installscript_versions into master
1 file
+ 8
4
Compare changes
  • Side-by-side
  • Inline
+ 8
4
@@ -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
Loading