aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/translation_migration.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/files/translation_migration.sh b/files/translation_migration.sh
index 0b4b2ccc..9ff9887e 100644
--- a/files/translation_migration.sh
+++ b/files/translation_migration.sh
@@ -8,13 +8,10 @@ current=${PWD##*/}
if [ "$current" != "$MODULE" ]; then
echo "Not in $MODULE";
- return;
+else
+ # DANGEROUS! Removes all files matching regex
+ egrep -lir --include="*.xml" "<resources.*></resources>" "./" | tr '\n' '\0' | xargs -0 -n1 rm
+ # Delete empty directories
+ find . -type d -empty -delete
fi
-# DANGEROUS! Removes all files matching regex
-
-egrep -lir --include="*.xml" "<resources.*></resources>" "./" | tr '\n' '\0' | xargs -0 -n1 rm
-
-# Delete empty directories
-
-find . -type d -empty -delete \ No newline at end of file