Signed-off-by: Matt Darfeuille <matd...@gmail.com>
---
 build/upload | 6 +++---
 web/publish  | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/build/upload b/build/upload
index 22aecb8f..8786a2c5 100755
--- a/build/upload
+++ b/build/upload
@@ -248,7 +248,7 @@ for f in *-${1}.tar.bz2 *-${1}.tgz; do
 done
 
 if [ -n "$UPLOADCORE" -a -n "$corerpm" ]; then
-                          base="shorewall-core-${1}.tar.*"            && 
files="$files shorewall-core-${1}.*     $corerpm      $coresrpm"
+    base="shorewall-core-${1}.tar.*"            && files="$files 
shorewall-core-${1}.*     $corerpm      $coresrpm"
 fi
 
 [ -n "$UPLOAD6" ]      && base="$base shorewall6-${1}.tar.*"          && 
files="$files shorewall6-${1}.*          $rpm6        $srpm6"
@@ -284,9 +284,9 @@ for f in ${1}.*sums; do
     /usr/bin/gpg -ab --batch --comment 'To verify this, you can download our 
public key at https://lists.shorewall.net/shorewall.gpg.key' $f
 done
 
-[ -n "$BASE" ] && $COMMAND $base $DEST/base
+[ -n "$BASE" ] && $COMMAND $base $DEST/base || exit $?
 
-$COMMAND -r $files $DEST
+$COMMAND -r $files $DEST || exit $?
 
 #if [ -n "$BASE" ]; then
 #    do_manpages $shorewall-docs-html-${1}/manpages
diff --git a/web/publish b/web/publish
index 509d82f8..a10c97c9 100755
--- a/web/publish
+++ b/web/publish
@@ -185,7 +185,7 @@ if [ -n "$filestocopy" ]; then
 
     chmod 664 $filestocopy
     echo "$filestoreport -> $DEST"
-    scp -qp4 $filestocopy $DEST
+    scp -qp4 $filestocopy $DEST || exit $?
     # ssh ${DESTUSER}@${DESTHOST} chmod 744 $DESTDIR/*.htm*
 fi
 
-- 
2.17.0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Shorewall-devel mailing list
Shorewall-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to