Browse Source

Exit on error immediately

Dave Beckett 4 years ago
parent
commit
52704e6ed0
2 changed files with 10 additions and 4 deletions
  1. 5 2
      scripts/install-raptor.sh
  2. 5 2
      scripts/install-rasqal.sh

+ 5 - 2
scripts/install-raptor.sh

@@ -3,7 +3,7 @@
 #
 # Intended for use with travis CI; see .travis.yml at the root
 
-set -x
+set -ex
 
 PACKAGE=raptor2
 MIN_VERSION=$1
@@ -22,6 +22,9 @@ else
     mkdir $BUILD_DIR && cd $BUILD_DIR
     wget -O $FILE $URL || curl -o $FILE $URL
     tar -x -z -f $FILE && rm $FILE
-    cd $PACKAGE-$INSTALL_VERSION && ./configure --prefix=/usr && make && sudo make install
+    cd $PACKAGE-$INSTALL_VERSION
+    ./configure --prefix=/usr
+    make
+    sudo make install
     cd / && rm -rf $BUILD_DIR
 fi

+ 5 - 2
scripts/install-rasqal.sh

@@ -3,7 +3,7 @@
 #
 # Intended for use with travis CI; see .travis.yml at the root
 
-set -x
+set -ex
 
 PACKAGE=rasqal
 MIN_VERSION=$1
@@ -22,6 +22,9 @@ else
     mkdir $BUILD_DIR && cd $BUILD_DIR
     wget -O $FILE $URL || curl -o $FILE $URL
     tar -x -z -f $FILE && rm $FILE
-    cd $PACKAGE-$INSTALL_VERSION && ./configure --prefix=/usr && make && sudo make install
+    cd $PACKAGE-$INSTALL_VERSION
+    ./configure --prefix=/usr
+    make
+    sudo make install
     cd / && rm -rf $BUILD_DIR
 fi