From db4788184208818c3f5d77260f44cd3ec43fed84 Mon Sep 17 00:00:00 2001 From: hl Date: Tue, 5 Nov 2024 18:57:48 +0800 Subject: [PATCH] update --- install-release.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install-release.sh b/install-release.sh index 64126c2..9913cfc 100755 --- a/install-release.sh +++ b/install-release.sh @@ -35,7 +35,7 @@ main(){ if [ -z "$PROG_PATH" ]; then exit 0 fi - echo "Downloading..." + echo "Prepare tmp directory" pkgname=$(echo "$dl_url" | awk -F'/' '{print $NF}') if [ ! -z "$PKG_NAME" ]; then pkgname="$PKG_NAME" @@ -46,6 +46,7 @@ main(){ ext=$(echo "$pkgname" | awk -F'.' '{print $NF}') ext_tar=$(echo "$pkgname" | awk -F'.' '{print $(NF-1)}') dirname= + echo "Downloading..." if (echo $ext | grep -i zip) >/dev/null 2>&1; then curl $SET_AUTH $SET_PROXY -SfLo source_pkg.zip "$dl_url" unzip -o source_pkg.zip @@ -62,6 +63,7 @@ main(){ echo "Unknown format: $pkgname" exit 1 fi + echo "Inflation complete" rm source_pkg.* if [ ! -z "$PKG_DIR" ]; then if [ "$PKG_DIR" = "-" ]; then @@ -78,12 +80,12 @@ main(){ cd "$PKG_DIR" fi fi - CWD=$(pwd) if [ ${CWD:0:5} != "/tmp/" ]; then echo "Wrong dir inside package!" exit 1 fi + PROG_PATH=$(realpath "$PROG_PATH"); echo echo "Installing..."