Skip to content

Commit

Permalink
bugfix: fix wrong path and make sdk_init.sh support no args
Browse files Browse the repository at this point in the history
Signed-off-by: zhouzheng <[email protected]>
  • Loading branch information
zzvswxy committed Jan 30, 2022
1 parent 6a2b82b commit 9739780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
4 changes: 2 additions & 2 deletions codegen_to_sdk_config.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"init": {
"initScript": {
"path": ".scripts/sdk_init.sh"
"path": "./scripts/sdk_init.sh"
}
},

"generateAndBuild": {
"generateAndBuildScript": {
"path": ".scripts/sdk_generate.sh",
"path": "./scripts/sdk_generate.sh",
"stderr": {
"storeAllLog": true
},
Expand Down
17 changes: 0 additions & 17 deletions scripts/sdk_init.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
#!/bin/bash

# install python3.8
sudo apt-get install python3.8
sudo apt-get install python3.8-venv

# init env
rm -rf $TMPDIR/venv-sdk
python3.8 -m venv $TMPDIR/venv-sdk
VIRTUAL_ENV=$TMPDIR/venv-sdk
export VIRTUAL_ENV
PATH="$VIRTUAL_ENV/bin:$PATH"
export PATH
python -m pip install -U pip
python scripts/dev_setup.py -p azure-core
echo "{}" >> $1
echo "[Generate] init success!!!"

0 comments on commit 9739780

Please sign in to comment.