Skip to content

Commit 0620a91

Browse files
authored
feat: modify quickstart to fix bootstrap.sh is not excutable (#24)
1 parent 1b94389 commit 0620a91

File tree

6 files changed

+7
-149
lines changed

6 files changed

+7
-149
lines changed

build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
# 🌈 Let's make some magic happen!
5+
# 🌈 Let's make some magic happen!
66
echo "🚀 Starting the awesome file copying process..."
77
for lang in python go java nodejs; do
88
if [ ! -d "$lang" ]; then
@@ -15,9 +15,9 @@ for lang in python go java nodejs; do
1515
if [ -d "$dir" ]; then
1616
# Copy quickstart.md
1717
cp -f shared/quickstart.md "$dir/quickstart.md"
18-
18+
1919
# Copy bootstrap files (sh, bat, ps1)
20-
for ext in sh bat ps1; do
20+
for ext in sh ps1; do
2121
source_bootstrap_file="$lang/bootstrap.$ext"
2222
if [ -f "$source_bootstrap_file" ]; then
2323
cp -f "$source_bootstrap_file" "$dir/bootstrap.$ext"
@@ -88,7 +88,7 @@ for lang in python go java nodejs; do
8888
grep -v "node_modules" | \
8989
grep -v "package-lock.json" | \
9090
# java
91-
grep -v ".gradle" | \
91+
grep -v "\.gradle" | \
9292
# zip
9393
zip "../../release/$zip_name" -@)
9494
echo " ✨ Package created successfully: release/$zip_name"
@@ -98,4 +98,4 @@ done
9898

9999
echo "📚 All packages have been created in the release directory!"
100100

101-
echo "🎉 All done!"
101+
echo "🎉 All done!"

go/bootstrap.bat

Lines changed: 0 additions & 26 deletions
This file was deleted.

java/bootstrap.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

nodejs/bootstrap.bat

Lines changed: 0 additions & 37 deletions
This file was deleted.

python/bootstrap.bat

Lines changed: 0 additions & 72 deletions
This file was deleted.

shared/quickstart.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
Run this command for linux/macos:
22
```bash
3-
./bootstrap.sh
4-
```
5-
6-
Run this command for windows:
7-
```bash
8-
bootstrap.bat
3+
bash bootstrap.sh
94
```
105

116
Run this command for windows powershell:
127
```powershell
13-
bootstrap.ps1
8+
.\bootstrap.ps1
149
```

0 commit comments

Comments
 (0)