aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/translation_migration.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/translation_migration.sh b/files/translation_migration.sh
index 0def30f..aabd2f8 100644
--- a/files/translation_migration.sh
+++ b/files/translation_migration.sh
@@ -6,11 +6,11 @@ cd ..
current=${PWD##*/}
-if [ "$current" != "$MODULE" ]; then
+if [[ "$current" != "$MODULE" ]]; then
echo "Not in $MODULE";
else
# DANGEROUS! Removes all files matching regex
- egrep -lir --include="*.xml" "<resources.*></resources>" "./" | tr '\n' '\0' | xargs -0 -n1 rm
+ grep -Lir "</string>" --include="strings*.xml" "." | tr '\n' '\0' | xargs -0 -n1 rm
# Delete empty directories
find . -type d -empty -delete
fi