Skip to content

Commit 9739780

Browse files
committed
bugfix: fix wrong path and make sdk_init.sh support no args
Signed-off-by: zhouzheng <[email protected]>
1 parent 6a2b82b commit 9739780

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

codegen_to_sdk_config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"init": {
33
"initScript": {
4-
"path": ".scripts/sdk_init.sh"
4+
"path": "./scripts/sdk_init.sh"
55
}
66
},
77

88
"generateAndBuild": {
99
"generateAndBuildScript": {
10-
"path": ".scripts/sdk_generate.sh",
10+
"path": "./scripts/sdk_generate.sh",
1111
"stderr": {
1212
"storeAllLog": true
1313
},

scripts/sdk_init.sh

100644100755
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +0,0 @@
1-
#!/bin/bash
2-
3-
# install python3.8
4-
sudo apt-get install python3.8
5-
sudo apt-get install python3.8-venv
6-
7-
# init env
8-
rm -rf $TMPDIR/venv-sdk
9-
python3.8 -m venv $TMPDIR/venv-sdk
10-
VIRTUAL_ENV=$TMPDIR/venv-sdk
11-
export VIRTUAL_ENV
12-
PATH="$VIRTUAL_ENV/bin:$PATH"
13-
export PATH
14-
python -m pip install -U pip
15-
python scripts/dev_setup.py -p azure-core
16-
echo "{}" >> $1
17-
echo "[Generate] init success!!!"

0 commit comments

Comments
 (0)