Skip to content

Commit

Permalink
update init template to run multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 committed May 22, 2023
1 parent 832933f commit 796b311
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/init-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ if [ -z $GAME_NAME ]; then
fi

echo "Setting game name to $GAME_NAME"
sed -i "s/##VAR_GAME_NAME/$GAME_NAME/g" project.godot
sed -i "s/##VAR_GAME_NAME/$GAME_NAME/g" .github/workflows/release.yml
sed -i "s/##VAR_GAME_NAME/$GAME_NAME/g" scripts/publish.sh
sed -e "/config\/name/ s/\".*\"/\"$GAME_NAME\"/" -i project.godot
sed -e "/GAME=/ s/\".*\"/\"$GAME_NAME\"/" -i scripts/publish.sh

# sed -i "s/##VAR_GAME_NAME/$GAME_NAME/g" project.godot
# sed -i "s/##VAR_GAME_NAME/$GAME_NAME/g" .github/workflows/release.yml
# sed -i "s/##VAR_GAME_NAME/$GAME_NAME/g" scripts/publish.sh

echo "#$GAME_NAME" > README.md

0 comments on commit 796b311

Please sign in to comment.