From 0fb1ecdf1ee0cc2d721c9f2741e273a173dc9373 Mon Sep 17 00:00:00 2001 From: Travis Webb Date: Wed, 22 Feb 2017 11:18:28 -0600 Subject: [PATCH] invisible magic error bug thing fix I tried to install it on cygwin, says "installed dope 0.0.3", then the binary file contains a single line with "Not Found" because the `curl binUrl` is wrong. If I do: ``` if [ "${goOs}" != "darwin" ] && [ "${goOs}" != "linux" ]; then goOs="linux" fi ``` ...instead, it seems to install correctly, but I get `zsh: exec format error: dope` or `bash: /usr/local/bin/dope: cannot execute binary file: Exec format error` when I run it. (I think) This is an architecture problem. My pc doesn't like amd64. --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 05a8d30..014ea1f 100755 --- a/install.sh +++ b/install.sh @@ -7,8 +7,13 @@ arch=$(uname -m) goOs="$(tr '[:upper:]' '[:lower:]' <<< ${os})" goArch="" +if [ "${goOs}" != "darwin" ] && [ "${goOs}" != "linux" ]; then + echo "Unsupported operating system: ${os}" + exit 1 +fi + if [ "${arch}" == "x86_64" ]; then - goArch="amd64" + goArch="amd64" else echo "Unsupported arch ${arch}\n" exit 1