passepartout-apple/scripts/add-provider-description.sh
Davide De Rosa 9282525be0 Add scripts to add provider to store description
Should also add before (for first provider), not only after.
2020-05-15 13:25:01 +02:00

11 lines
242 B
Bash
Executable File

#!/bin/sh
PATTERN="fastlane/metadata/*/description.txt"
AFTER=$1
NAME=$2
DELIMITER="†"
for FILE in `ls $PATTERN`; do
sed -E "s/${AFTER}/${AFTER}${DELIMITER}- ${NAME}/g" $FILE | tr $DELIMITER '\n' >$FILE.tmp
mv $FILE.tmp $FILE
done