Also remove empty dirs when removing incomplete translations

This commit is contained in:
Michal Čihař
2011-05-11 14:45:51 +02:00
parent 5687ac290e
commit 072bc8de79

View File

@@ -51,6 +51,8 @@ check() {
if [ $PERCENT -lt $THRESHOLD ] ; then
echo "Removing $lang, only $PERCENT%"
rm -f locale/$lang/LC_MESSAGES/phpmyadmin.mo
rmdir locale/$lang/LC_MESSAGES
rmdir locale/$lang
fi
}