Skip to content

Commit

Permalink
fix: placeholder insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Jun 30, 2024
1 parent 414b4c4 commit dbe5603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BOOTSTRAP.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ bootstrap_file=$(basename "$0")
# $1: placeholder name as {{mustache-template}}
# $2: the replacement
function replacePlaceholders() {
# INFO macOS' sed requires `sed -i ''`, remove the `''` when on Linux or using GNU sed
# INFO macOS' sed requires `sed -i ''`, remove the `''` when on Linux or using GNU-sed
find . -type f -not -path '*/\.git/*' -not -name ".DS_Store" -not -name "$bootstrap_file" -exec \
sed -i '' "s/$1/$2/g" {} \;
sed -i '' "s|$1|$2|g" {} \;
}

replacePlaceholders "%%plugin-name%%" "$name"
Expand Down

0 comments on commit dbe5603

Please sign in to comment.