aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-05-01 16:05:19 -0700
committerAllan Wang <me@allanwang.ca>2019-05-01 16:05:19 -0700
commit58f4f9298b09081b3c937227828824849057a835 (patch)
tree18d2bf44637b52c9f68817253fc37d4ca699daef /files
parent576cc1a451a16f2d82ee1e41e83c420a85ded47e (diff)
parentda93672c2ed6b54e0e7119a6b55715185112df3e (diff)
downloadfrost-58f4f9298b09081b3c937227828824849057a835.tar.gz
frost-58f4f9298b09081b3c937227828824849057a835.tar.bz2
frost-58f4f9298b09081b3c937227828824849057a835.zip
Merge dev
Diffstat (limited to 'files')
-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 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