aboutsummaryrefslogtreecommitdiff
path: root/mediawiki-dl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-04-01 15:50:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-04-01 15:50:00 -0300
commitd26792dfcc4240669095652fd5aedc14cce9f4f6 (patch)
treef9feb1e1100f010f7abffc3245989aea99a3f1e2 /mediawiki-dl
parent4cac8803e8eb3f90e019ab66286383c69976c82d (diff)
downloaddownloaders-d26792dfcc4240669095652fd5aedc14cce9f4f6.tar.gz
downloaders-d26792dfcc4240669095652fd5aedc14cce9f4f6.tar.bz2
Basic error handling at mediawiki-dl
Diffstat (limited to 'mediawiki-dl')
-rwxr-xr-xmediawiki-dl10
1 files changed, 5 insertions, 5 deletions
diff --git a/mediawiki-dl b/mediawiki-dl
index 5b86a6c..8535e30 100755
--- a/mediawiki-dl
+++ b/mediawiki-dl
@@ -23,12 +23,12 @@ function mediawiki_deploy {
exit 1
fi
- $sudo wget $RELEASES/$MAJOR_VERSION/$TARBALL
- $sudo wget $RELEASES/$MAJOR_VERSION/$TARBALL.sig
+ $sudo wget $RELEASES/$MAJOR_VERSION/$TARBALL || exit 1
+ $sudo wget $RELEASES/$MAJOR_VERSION/$TARBALL.sig || exit 1
gpg --verify $TARBALL.sig $TARBALL
- $sudo tar xvf $TARBALL
- $sudo chown -R root. mediawiki-$VERSION
- rm $TARBALL*
+ $sudo tar xvf $TARBALL || exit 1
+ $sudo chown -R root. mediawiki-$VERSION || exit 1
+ $sudo rm $TARBALL*
$sudo ln -sf mediawiki-$VERSION mediawiki
}