diff --git a/packages/web/docs/public/install.sh b/packages/web/docs/public/install.sh index f0c5a5b71bb..fcf7f76c11d 100755 --- a/packages/web/docs/public/install.sh +++ b/packages/web/docs/public/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh { set -e SUDO='' @@ -11,7 +11,7 @@ fi # run inside sudo - $SUDO bash << SCRIPT + $SUDO sh << SCRIPT set -e OS="" @@ -21,9 +21,7 @@ echoerr() { echo "\$@" 1>&2; } unsupported_arch() { - local os=$1 - local arch=$2 - echoerr "GraphQL Hive CLI does not support $os / $arch at this time." + echoerr "GraphQL Hive CLI does not support \$@ at this time." echo "If you think that's a bug - please file an issue to https://github.com/kamilkisiela/graphql-hive/issues" exit 1 } @@ -57,7 +55,7 @@ elif [[ "\$ARCH" == aarch* ]]; then ARCH=arm else - unsupported_arch $OS $ARCH + unsupported_arch "\$OS / \$ARCH" fi } @@ -89,7 +87,7 @@ download SCRIPT - LOCATION=$(command -v hive) - echo "GraphQL Hive CLI installed to $LOCATION" - hive --version +LOCATION=$(command -v hive) +echo "GraphQL Hive CLI installed to $LOCATION" +hive --version }