From 430c57885201eb8ce48c9419b29ef9acd9d2695f Mon Sep 17 00:00:00 2001 From: Connection Refused Date: Wed, 25 Nov 2020 04:48:47 +0800 Subject: [PATCH] Fix install scripts --- scripts/kickstart.sh | 4 ++-- scripts/upgrade.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/kickstart.sh b/scripts/kickstart.sh index bfa1175..d85e192 100644 --- a/scripts/kickstart.sh +++ b/scripts/kickstart.sh @@ -54,11 +54,11 @@ fi cd ~ OUT_ALERT "[信息] 下载程序中" -rm -fr release && mkdir release && cd release +rm -fr release wget -O release.zip https://github.com/aiocloud/stream/releases/latest/download/release.zip || exit 1 OUT_ALERT "[信息] 解压程序中" -unzip release.zip && rm -f release.zip +unzip release.zip && rm -f release.zip && cd release OUT_ALERT "[信息] 设置权限中" chmod +x stream diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index b37da4f..4019233 100644 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh @@ -54,11 +54,11 @@ fi cd ~ OUT_ALERT "[信息] 下载程序中" -rm -fr release && mkdir release && cd release +rm -fr release wget -O release.zip https://github.com/aiocloud/stream/releases/latest/download/release.zip || exit 1 OUT_ALERT "[信息] 解压程序中" -unzip release.zip && rm -f release.zip +unzip release.zip && rm -f release.zip && cd release OUT_ALERT "[信息] 设置权限中" chmod +x stream