From 072bc8de79f1cf58cded1c4f1b4d3b97590e0a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 11 May 2011 14:45:51 +0200 Subject: [PATCH] Also remove empty dirs when removing incomplete translations --- scripts/remove-incomplete-mo | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/remove-incomplete-mo b/scripts/remove-incomplete-mo index 02069f928..d9e485c1e 100755 --- a/scripts/remove-incomplete-mo +++ b/scripts/remove-incomplete-mo @@ -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 }