Skip to content

Commit eadef33

Browse files
committed
Fix install script
1 parent d6ec947 commit eadef33

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

install-local.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ initOS() {
3232

3333
# initOS discovers the operating system for this system.
3434
initCLIPath() {
35-
suffix=$([ "${OS}" = "windows" ] && echo ".exe")
36-
GH_CLI_TMP="libs/${OS}-${ARCH}/github-${OS}-${arch}${suffix}"
35+
suffix=""
36+
37+
if [ "${OS}" = "windows" ]; then
38+
suffix=".exe"
39+
fi
40+
41+
GH_CLI_TMP="libs/${OS}-${ARCH}/github-${OS}-${ARCH}${suffix}"
42+
echo "Init CLI Path for ${OS}-${ARCH} (${GH_CLI_TMP})"
3743
}
3844

3945
# runs the given command as root (detects if we are root already)
@@ -50,7 +56,7 @@ runAsRoot() {
5056
# verifySupported checks that the os/arch combination is supported for
5157
# binary builds.
5258
verifySupported() {
53-
59+
echo "check support ${GH_CLI_TMP}"
5460
if [ ! -f "${GH_CLI_TMP}" ]; then
5561
echo "No prebuilt binary for ${OS}-${ARCH}."
5662
echo "To build from source, go to https://github.com/fulll/github"

0 commit comments

Comments
 (0)