only download kareha-zip file when it is not available

This commit is contained in:
Matthias Strubel 2014-04-07 08:57:45 +02:00
parent 6f747bf6e4
commit 533f61d827

View file

@ -90,12 +90,15 @@ if [ $2 = 'imageboard' ] ; then
exit 0;
fi
echo " Wgetting kareha-zip file "
cd $PIRATEBOX_FOLDER/tmp
KAREHA_RELEASE=kareha_3.1.4.zip
wget http://wakaba.c3.cx/releases/$KAREHA_RELEASE
if [ "$?" != "0" ] ; then
echo "wget kareha failed.. you can place the current file your to $PIRATEBOX_FOLDER/tmp "
if [ ! -e $PIRATEBOX_FOLDER/tmp/$KAREHA_RELEASE ] ; then
echo " Wgetting kareha-zip file "
wget http://wakaba.c3.cx/releases/$KAREHA_RELEASE
if [ "$?" != "0" ] ; then
echo "wget kareha failed.. you can place the current file your to $PIRATEBOX_FOLDER/tmp "
fi
fi
if [ -e $PIRATEBOX_FOLDER/tmp/$KAREHA_RELEASE ] ; then