Skip to content

Commit

Permalink
Fixed/current install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
codepope committed Aug 10, 2020
1 parent 105d105 commit eb05d95
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions installers/install.sh 100755 → 100644
Expand Up @@ -20,7 +20,7 @@ esac

if [ $# -eq 0 ]; then
flyctl_asset_path=$(
curl -sSf https://github.com/superfly/flyctl/releases |
curl -sSf -N https://github.com/superfly/flyctl/releases |
grep -E -o "/superfly/flyctl/releases/download/.*/flyctl_[0-9]+\\.[0-9]+\\.[0-9]+_${target}.tar.gz" |
head -n 1
)
Expand All @@ -30,9 +30,9 @@ if [ $# -eq 0 ]; then
fi
flyctl_uri="https://github.com${flyctl_asset_path}"
else
if [[ ${1} == "prerel" ]]; then
if [ "${1}" = "prerel" ]; then
flyctl_asset_path=$(
curl -sSf https://github.com/superfly/flyctl/releases |
curl -sSf -N https://github.com/superfly/flyctl/releases |
grep -E -o "/superfly/flyctl/releases/download/.*/flyctl_[0-9]+\\.[0-9]+\\.[0-9]+(\\-beta\\-[0-9]+)*_${target}.tar.gz" |
head -n 1
)
Expand Down Expand Up @@ -62,12 +62,6 @@ tar xzf "$exe.tar.gz"
chmod +x "$exe"
rm "$exe.tar.gz"

if [[ ${1} == "prerel" ]]; then
"$exe" version -s "shell-prerel"
else
"$exe" version -s "shell"
fi

echo "Flyctl was installed successfully to $exe"
if command -v flyctl >/dev/null; then
echo "Run 'flyctl --help' to get started"
Expand Down

0 comments on commit eb05d95

Please sign in to comment.