From: Timo Heister Date: Thu, 22 Feb 2018 20:10:56 +0000 (-0500) Subject: fix bash script stylistic issues X-Git-Tag: v9.0.0-rc1~399^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5947%2Fhead;p=dealii.git fix bash script stylistic issues using shellcheck --- diff --git a/contrib/utilities/setup_astyle.sh b/contrib/utilities/setup_astyle.sh index 4f0f53dc70..fdb23e6628 100755 --- a/contrib/utilities/setup_astyle.sh +++ b/contrib/utilities/setup_astyle.sh @@ -2,19 +2,19 @@ PRG=$PWD/programs -if [ ! -d $PRG ] +if [ ! -d "$PRG" ] then - echo "create folder `$PRG`" - mkdir $PRG + echo "create folder $PRG" + mkdir "$PRG" fi # astyle -if [ ! -d $PRG/astyle ] +if [ ! -d "$PRG/astyle" ] then echo "Downloading and installing astyle." - mkdir $PRG/astyle + mkdir "$PRG/astyle" wget http://downloads.sourceforge.net/project/astyle/astyle/astyle%202.04/astyle_2.04_linux.tar.gz > /dev/null - tar xfz astyle_2.04_linux.tar.gz -C $PRG > /dev/null - cd $PRG/astyle/build/gcc + tar xfz astyle_2.04_linux.tar.gz -C "$PRG" > /dev/null + cd "$PRG/astyle/build/gcc" make -j4 > /dev/null fi