File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
99cp $README_TPL $README_TPL_TEMP
1010touch $CONTRIBUTORS_FILE
1111
@@ -18,10 +18,9 @@ sed -i "" s/"## Contributors"/"## 👥 Contributors"/ $CONTRIBUTORS_FILE
1818# Store our files to merge
1919README_OUTPUT=$( < $README_TPL )
2020CONTRIBUTOR_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
2726rm $CONTRIBUTORS_FILE
You can’t perform that action at this time.
0 commit comments