install and update support dev

This commit is contained in:
qiaofeng1227 2023-08-11 12:03:19 +08:00
parent 444d898151
commit 5b05e940e9
2 changed files with 8 additions and 0 deletions

View file

@ -9,6 +9,10 @@ function error_exit {
trap 'error_exit "Please push issue to: https://github.com/Websoft9/stackhub/issues"' ERR
urls="https://w9artifact.blob.core.windows.net/release/websoft9"
if [[ "$1" == "dev" ]]; then
echo "update by dev artifacts"
urls="https://w9artifact.blob.core.windows.net/dev/websoft9"
fi
function get_os_type() {
if [ -f /etc/os-release ]; then

View file

@ -9,6 +9,10 @@ function error_exit {
trap 'error_exit "Please push issue to: https://github.com/Websoft9/websoft9/issues"' ERR
urls="https://w9artifact.blob.core.windows.net/release/websoft9"
if [[ "$1" == "dev" ]]; then
echo "update by dev artifacts"
urls="https://w9artifact.blob.core.windows.net/dev/websoft9"
fi
CheckEnv(){
echo "------------------ Welcome to update websoft9's appstore, it will take 1-3 minutes -----------------"