Skip to content

Commit

Permalink
ugh....
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ovi committed Aug 15, 2024
1 parent fa00fa1 commit 28e61a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/flyctl/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ export PATH="$FLYCTL_INSTALL/bin:$PATH"

echo "Installing flyctl..."
sudo -E -u $_REMOTE_USER zsh <<EOF
if [ "$VERSION" = "latest" ]; then
export FLYCTL_INSTALL="$USER_HOME/.fly"
export PATH="\$FLYCTL_INSTALL/bin:\$PATH"
if [ "\$VERSION" = "latest" ]; then
curl -L https://fly.io/install.sh | sh
else
curl -L https://fly.io/install.sh | sh -s "$VERSION"
curl -L https://fly.io/install.sh | sh -s "\$VERSION"
fi
EOF

0 comments on commit 28e61a8

Please sign in to comment.