Skip to content

Commit 502f3c3

Browse files
committed
✏️ needed pointer to be in all caps
1 parent ac5a371 commit 502f3c3

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.ci/scripts/updateContributors.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
2-
echo $(pwd)
3-
SCRIPT_DIR=$(pwd)
2+
43
# Assign the filename
5-
README_TPL="$SCRIPT_DIR/.ci/templates/README.hbs"
6-
README_TPL_TEMP="$SCRIPT_DIR/.ci/templates/README.temp.hbs"
4+
README_TPL="./.ci/templates/README.hbs"
5+
README_TPL_TEMP="./.ci/templates/README.temp.hbs"
6+
77
# Create temporary files
8-
CONTRIBUTORS_FILE="$SCRIPT_DIR/.ci/templates/contributors.temp.md"
8+
CONTRIBUTORS_FILE="./.ci/templates/contributors.temp.md"
99
cp $README_TPL $README_TPL_TEMP
1010
touch $CONTRIBUTORS_FILE
1111

@@ -18,10 +18,9 @@ sed -i "" s/"## Contributors"/"## 👥 Contributors"/ $CONTRIBUTORS_FILE
1818
# Store our files to merge
1919
README_OUTPUT=$(<$README_TPL)
2020
CONTRIBUTOR_OUTPUT=$(<$CONTRIBUTORS_FILE)
21+
2122
# Merge files replacing pointer in TPL file
22-
echo $README_OUTPUT
23-
echo $CONTRIBUTOR_OUTPUT
24-
echo "${README_OUTPUT//"{{Contributors}}"/$CONTRIBUTOR_OUTPUT}" >$README_TPL_TEMP
23+
echo "${README_OUTPUT//"{{CONTRIBUTORS}}"/$CONTRIBUTOR_OUTPUT}" >$README_TPL_TEMP
2524

2625
# Clean up contributor temp file
2726
rm $CONTRIBUTORS_FILE

0 commit comments

Comments
 (0)