-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·29 lines (26 loc) · 815 Bytes
/
Copy pathinit.sh
File metadata and controls
executable file
·29 lines (26 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
./clean.sh
read -p "Enter game name: " gameName
read -p "Enter game id: " gameId
rm constants.yaml
printf "gameName: $gameName\n" >> constants.yaml
printf "gameId: $gameId\n" >> constants.yaml
printf "gameVersion: 1.0.0\n" >> constants.yaml
printf "windowSize: 1600x900" >> constants.yaml
read -p "Create new repo? (y/n): " createRepo
if [ $createRepo == "y" ]; then
gh auth login
repoName="${gameName// /-}"
read -p "Enter GitHub token: " token
cp -r .git/hooks .
sudo rm -rf .git
git init
git branch -m main
rm .git/hooks -r
mv hooks .git
git add .
gh repo create $repoName --private
git remote add origin https://jebouin:${token}@github.com/jebouin/${repoName}.git
git commit -m "Initial commit"
fi
php ./commandbar.php > .vscode/commandbar.json