From 48c909dd2b1a883a11bc49df4d290ae802d134ed Mon Sep 17 00:00:00 2001 From: Jesse Rosenberger Date: Fri, 15 Jul 2022 11:54:08 +0000 Subject: [PATCH] update install script to use target triple formatted archive names This follows-up #1393 with the nececessary changes to the install script which allows the installer to locate (and extract) the right binaries during the `router.apollo.dev` installation bits. --- scripts/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 28d6564afa..086e9d44a9 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -77,7 +77,7 @@ download_binary() { # Download asset file. say "Downloading router from $_url" - + curl -sSfL -H 'Accept: application/octet-stream' "$_url" -o "$_file" if [ $? != 0 ]; then say "Failed to download $_url" @@ -137,15 +137,15 @@ get_architecture() { case "$_ostype" in Linux) - _ostype=linux + _ostype=unknown-linux-gnu ;; Darwin) - _ostype=macos + _ostype=apple-darwin ;; MINGW* | MSYS* | CYGWIN*) - _ostype=windows + _ostype=pc-windows-msvc ;; *)