From 1f6a5ced6fcf45ccbb2e235edcce37888747993c Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Mon, 9 Oct 2023 15:11:32 +0800 Subject: [PATCH] Opt: install script func name --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 5e1624a..930f30f 100755 --- a/install.sh +++ b/install.sh @@ -133,7 +133,7 @@ function Download() { esac } -function InstallVersion() { +function InstallWithVersion() { tmp_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'synctv-install.XXXXXXXXXX') cd "$tmp_dir" trap 'rm -rf "$tmp_dir"' EXIT @@ -161,7 +161,7 @@ function InstallVersion() { esac } -function CheckAndInstallVersion() { +function Install() { current_version="$(CurrentVersion)" echo "current version: $current_version" echo "install version: $VERSION" @@ -170,7 +170,7 @@ function CheckAndInstallVersion() { exit 0 fi - InstallVersion "$VERSION" + InstallWithVersion "$VERSION" } Init @@ -178,4 +178,4 @@ ParseArgs "$@" FixArgs InitOS InitArch -CheckAndInstallVersion +Install