Browse Source

fix shell :)

pull/2799/head
lizzie 3 months ago
committed by crueter
parent
commit
be25e9c4bb
  1. 2
      tools/unused-strings.sh

2
tools/unused-strings.sh

@ -26,7 +26,7 @@ done <"$TMP_DIR"/files
set -e
# filter out "@string/" and "R.string." from the strings to get the raw names
sed 's/R.string.\|@string\///' "$USED" | sort -u | grep -v app_name_suffixed > "$FILTERED"
sed 's/R.string.//' "$USED" | sed 's/@string\///' | sort -u | grep -v app_name_suffixed > "$FILTERED"
# now we run a sort + uniq -u pass - this basically removes all strings that are
# present in BOTH the used strings list AND strings.xml

Loading…
Cancel
Save