diff --git a/dev/pkgbuild-macosx.sh b/dev/pkgbuild-macosx.sh index 8af3014..57f6c60 100755 --- a/dev/pkgbuild-macosx.sh +++ b/dev/pkgbuild-macosx.sh @@ -155,11 +155,7 @@ make clean # ================ # cd $SRCDIR if [ ! -d "$GAMMALIB" ]; then - if [[ $GAMMALIB == *"dev"* ]]; then - command_that_does_not_exist_to_provoke_error - else - wget http://cta.irap.omp.eu/ctools/releases/gammalib/$GAMMALIB.tar.gz - fi + wget http://cta.irap.omp.eu/ctools/releases/gammalib/$GAMMALIB.tar.gz if [ "$?" -ne "0" ]; then if [ ! -d "gammalib" ]; then echo "*** Unable to download $GAMMALIB.tar.gz, try cloning from GitLab" @@ -215,11 +211,7 @@ make clean cd $SRCDIR CTOOLS_DIR=$CTOOLS if [ ! -d "$CTOOLS" ]; then - if [[ $CTOOLS == *"dev"* ]]; then - command_that_does_not_exist_to_provoke_error - else - wget http://cta.irap.omp.eu/ctools/releases/ctools/$CTOOLS.tar.gz - fi + wget http://cta.irap.omp.eu/ctools/releases/ctools/$CTOOLS.tar.gz if [ "$?" -ne "0" ]; then if [ ! -d "ctools" ]; then echo "*** Unable to download $CTOOLS.tar.gz, try cloning from GitLab"