Skip to content

Commit

Permalink
Install script
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed Jun 5, 2023
1 parent d1ed4ae commit b1953c1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/web/docs/public/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
{
set -e
SUDO=''
Expand All @@ -11,7 +11,7 @@
fi

# run inside sudo
$SUDO bash << SCRIPT
$SUDO sh << SCRIPT
set -e
OS=""
Expand All @@ -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
}
Expand Down Expand Up @@ -57,7 +55,7 @@
elif [[ "\$ARCH" == aarch* ]]; then
ARCH=arm
else
unsupported_arch $OS $ARCH
unsupported_arch "\$OS / \$ARCH"
fi
}
Expand Down Expand Up @@ -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
}

0 comments on commit b1953c1

Please sign in to comment.