From be5af34a9cbece02bc6da825f69f2e29c8ffc60b Mon Sep 17 00:00:00 2001 From: mikigo Date: Tue, 24 Oct 2023 16:21:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B1=8F=E8=94=BDpublic=E5=BA=93?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=86=97=E4=BD=99=E6=97=A5=E5=BF=97=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description: Log: --- env.sh | 3 ++- env_dev.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/env.sh b/env.sh index c3227c5..06d3573 100644 --- a/env.sh +++ b/env.sh @@ -164,7 +164,8 @@ if [ "${requirements}" != "" ]; then done fi -pipenv run pip install -U auto_uos --extra-index-url ${pypi_mirror} -i http://10.20.52.221:8081 --trusted-host=10.20.52.221 +pipenv run pip install -U auto_uos --extra-index-url ${pypi_mirror} -i http://10.20.52.221:8081 --trusted-host=10.20.52.221 > /tmp/env.log 2>&1 +check_status auto_uos pip_show=$(pipenv run pip show auto_uos | grep Location) public_location=$(echo "${pip_show}" | cut -d ":" -f2 | python3 -c "s=input();print(s.strip())") sudo rm -rf ${ROOT_DIR}/public diff --git a/env_dev.sh b/env_dev.sh index 44e8cc6..f293fee 100755 --- a/env_dev.sh +++ b/env_dev.sh @@ -111,7 +111,8 @@ if [ "${requirements}" != "" ]; then done fi -sudo pip3 install -U auto_uos --extra-index-url ${pypi_mirror} -i http://10.20.52.221:8081 --trusted-host=10.20.52.221 +sudo pip3 install -U auto_uos --extra-index-url ${pypi_mirror} -i http://10.20.52.221:8081 --trusted-host=10.20.52.221 > /tmp/env.log 2>&1 +check_status auto_uos pip_show=$(pip3 show auto_uos | grep Location) public_location=$(echo "${pip_show}" | cut -d ":" -f2 | python3 -c "s=input();print(s.strip())") sudo rm -rf ${ROOT_DIR}/public