From f0a1c633bdb2e7c7e1417866dcc46f27a2afe035 Mon Sep 17 00:00:00 2001 From: vibou Date: Mon, 9 Jan 2023 15:50:23 +0100 Subject: [PATCH] fix install script --- install-local.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-local.sh b/install-local.sh index 5c1cbb3..81e1345 100755 --- a/install-local.sh +++ b/install-local.sh @@ -38,7 +38,7 @@ initCLIPath() { suffix=".exe" fi - GH_CLI_TMP="libs/${OS}-${ARCH}/github-${OS}-${ARCH}${suffix}" + GH_CLI_TMP="libs/${OS}-${ARCH}/github${suffix}" echo "Init CLI Path for ${OS}-${ARCH} (${GH_CLI_TMP})" } @@ -86,9 +86,9 @@ checkGithubInstalledVersion() { # installFile verifies the SHA256 for the file, then unpacks and # installs it. installFile() { - echo "Preparing to install $PROJECT_NAME into ${GH_CLI_INSTALL_DIR}" + echo "Preparing to install $PROJECT_NAME from ${GH_CLI_TMP} ${GH_CLI_INSTALL_DIR}" chmod +x "${GH_CLI_TMP}" - runAsRoot cp "${GH_CLI_TMP}" "$GH_CLI_INSTALL_DIR" + runAsRoot cp "${GH_CLI_TMP}" "$GH_CLI_INSTALL_DIR/$PROJECT_NAME" echo "$PROJECT_NAME installed into $GH_CLI_INSTALL_DIR/$PROJECT_NAME" }