diff options
Diffstat (limited to 'files/translation_migration.sh')
-rw-r--r-- | files/translation_migration.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/translation_migration.sh b/files/translation_migration.sh index 174d568a..03e3592a 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" "app/src/main/res" | tr '\n' '\0' | xargs -0 -n1 rm # Delete empty directories find . -type d -empty -delete fi |