findpots.sh: make sure file name prefixes are not added to pots.txt

this was not the case with find applet from busybox 1.22.1 but
with 1.23.0 it adds the prefixes by default. make sure they do not
get added as it is not desired by using the appropariate argument
This commit is contained in:
Ivailo Monev 2015-01-01 04:09:23 +00:00
parent d7978bdc4a
commit 7be9b7c60b

View file

@ -21,7 +21,7 @@ source "$(dirname $0)/fetch.sh"
echo -n > pots.txt
for p in ${packs[@]};do
echo "Finding POTs in $p..."
find "$p" -name Messages.sh -exec grep -o 'podir/.*.pot' {} + | sed 's|podir/||g' >> pots.txt
find "$p" -name Messages.sh -exec grep -h -o 'podir/.*.pot' {} + | sed 's|podir/||g' >> pots.txt
done
echo "All done"