passepartout-apple/scripts/add-provider-description.sh

11 lines
261 B
Bash
Raw Normal View History

#!/bin/sh
2021-01-02 22:23:18 +00:00
PATTERN="Passepartout/App/*/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