From f8cb196f6caccd276f643157ff7f524ab67afdea Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 22 Feb 2018 15:10:56 -0500 Subject: [PATCH] fix bash script stylistic issues using shellcheck --- contrib/utilities/setup_astyle.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 -- 2.39.5