Skip to content

Commit f0a1c63

Browse files
committed
fix install script
1 parent eadef33 commit f0a1c63

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

install-local.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ initCLIPath() {
3838
suffix=".exe"
3939
fi
4040

41-
GH_CLI_TMP="libs/${OS}-${ARCH}/github-${OS}-${ARCH}${suffix}"
41+
GH_CLI_TMP="libs/${OS}-${ARCH}/github${suffix}"
4242
echo "Init CLI Path for ${OS}-${ARCH} (${GH_CLI_TMP})"
4343
}
4444

@@ -86,9 +86,9 @@ checkGithubInstalledVersion() {
8686
# installFile verifies the SHA256 for the file, then unpacks and
8787
# installs it.
8888
installFile() {
89-
echo "Preparing to install $PROJECT_NAME into ${GH_CLI_INSTALL_DIR}"
89+
echo "Preparing to install $PROJECT_NAME from ${GH_CLI_TMP} ${GH_CLI_INSTALL_DIR}"
9090
chmod +x "${GH_CLI_TMP}"
91-
runAsRoot cp "${GH_CLI_TMP}" "$GH_CLI_INSTALL_DIR"
91+
runAsRoot cp "${GH_CLI_TMP}" "$GH_CLI_INSTALL_DIR/$PROJECT_NAME"
9292
echo "$PROJECT_NAME installed into $GH_CLI_INSTALL_DIR/$PROJECT_NAME"
9393
}
9494

0 commit comments

Comments
 (0)