summaryrefslogtreecommitdiff
path: root/lib/scripts/jquery/update.sh
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-01-17 15:43:34 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-01-17 15:43:34 +0100
commit4d4058eec6b089a303975dfd71f16fd42f55f11b (patch)
tree130fe4ac132b22b5b976242f5ec6a06a67668301 /lib/scripts/jquery/update.sh
parent138bfd16df9cb583107097f32be288b8705cd035 (diff)
downloadrpg-4d4058eec6b089a303975dfd71f16fd42f55f11b.tar.gz
rpg-4d4058eec6b089a303975dfd71f16fd42f55f11b.tar.bz2
do not keep zero size files
Diffstat (limited to 'lib/scripts/jquery/update.sh')
-rwxr-xr-xlib/scripts/jquery/update.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/scripts/jquery/update.sh b/lib/scripts/jquery/update.sh
index 7bfe1eaf4..b0de441f9 100755
--- a/lib/scripts/jquery/update.sh
+++ b/lib/scripts/jquery/update.sh
@@ -30,6 +30,9 @@ for LNG in ../../../inc/lang/*
do
CODE=`basename $LNG`
wget -nv https://raw2.github.com/jquery/jquery-ui/master/ui/i18n/jquery.ui.datepicker-$CODE.js -O $LNG/jquery.ui.datepicker.js
+ if [ ! -s "$LNG/jquery.ui.datepicker.js" ]; then
+ rm -f $LNG/jquery.ui.datepicker.js
+ fi
done
# some custom language codes