diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-04-01 15:50:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-04-01 15:50:00 -0300 |
commit | d26792dfcc4240669095652fd5aedc14cce9f4f6 (patch) | |
tree | f9feb1e1100f010f7abffc3245989aea99a3f1e2 | |
parent | 4cac8803e8eb3f90e019ab66286383c69976c82d (diff) | |
download | downloaders-d26792dfcc4240669095652fd5aedc14cce9f4f6.tar.gz downloaders-d26792dfcc4240669095652fd5aedc14cce9f4f6.tar.bz2 |
Basic error handling at mediawiki-dl
-rwxr-xr-x | mediawiki-dl | 10 |
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 } |