diff --git a/scripts/add-provider-description.sh b/scripts/add-provider-description.sh new file mode 100755 index 00000000..5a6a3b0c --- /dev/null +++ b/scripts/add-provider-description.sh @@ -0,0 +1,10 @@ +#!/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