From 9282525be0f205f8adcd976096effd476fb3d8f9 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 15 May 2020 13:24:52 +0200 Subject: [PATCH] Add scripts to add provider to store description Should also add before (for first provider), not only after. --- scripts/add-provider-description.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/add-provider-description.sh 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