- Abort on command failure

Signed-off-by: Matt Darfeuille <matd...@gmail.com>
---
 build/release | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/build/release b/build/release
index fba561b5..c178eb72 100755
--- a/build/release
+++ b/build/release
@@ -349,15 +349,22 @@ else
 fi
 
 for repo in $REPOSITORIES; do
-    push_command_func $GIT $repo $BASEVERSION
-    push_command_func $GITRELEASEDIR $repo $BASEVERSION
+    case $VERSION in
+        *Beta*|*RC*)
+            ;;
+        *)
+            push_command_func $GIT $repo $BASEVERSION
+            push_command_func $GITRELEASEDIR $repo $BASEVERSION
+            ;;
+    esac
+
     push_command_func $TOOLSDIR $repo master
     push_command_func $WEBDIR $repo master
     push_command_func $GIT $repo master
     push_command_func $GITRELEASEDIR $repo master
 done
 
-cd $BUILD_DIR/$BASEVERSION
+cd $BUILD_DIR/$BASEVERSION || exit $?
 
 if [ -f "$TOOLSDIR/build/upload" ]; then
     case $VERSION in
@@ -378,7 +385,7 @@ else
     fatal_error "File \"$TOOLSDIR/build/upload\" does not exist."
 fi
 
-cd $WEBDIR
+cd $WEBDIR || exit $?
 
 if [ -f "$WEBDIR/index.html" -a -f "$TOOLSDIR/web/publish" ]; then
     echo "Publishing index.html from ${PWD}..."
-- 
2.11.0



_______________________________________________
Shorewall-devel mailing list
Shorewall-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to