diff --git a/src/flyctl/install.sh b/src/flyctl/install.sh index eb72df6..a4236bf 100644 --- a/src/flyctl/install.sh +++ b/src/flyctl/install.sh @@ -2,19 +2,21 @@ set -eax -USER_HOME=$(eval echo ~$_REMOTE_USER) - -export FLYCTL_INSTALL="$USER_HOME/.fly" -export PATH="$FLYCTL_INSTALL/bin:$PATH" +ARCH=amd64 +if [ "$(uname -m)" = "aarch64" ]; then ARCH=arm64; fi echo "Installing flyctl..." -sudo -E -u $_REMOTE_USER zsh <