Skip to content

Commit

Permalink
Merge pull request #59 from ebiyuu1121/fix-install-script
Browse files Browse the repository at this point in the history
fix: fix install script
  • Loading branch information
b4b4r07 authored May 18, 2023
2 parents 23b37c2 + 5a48ff1 commit 89ca3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/install
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ main() {
"Darwin arm64") tarball="afx_darwin_arm64.tar.gz" ;;
"Darwin x86_64") tarball="afx_darwin_x86_64.tar.gz" ;;
"Linux aarch64") tarball="afx_linux_arm64.tar.gz" ;;
"Linux *64") tarball="afx_linux_x86_64.tar.gz" ;;
"Linux "*64) tarball="afx_linux_x86_64.tar.gz" ;;
*) notfound=true ;;
esac

if ! { download ${tarball} && install -v -m 0755 "${afx_tmp_dir}/afx ${afx_bin_dir}/afx"; } || ${notfound}; then
if ! { download ${tarball} && install -v -m 0755 "${afx_tmp_dir}/afx" "${afx_bin_dir}/afx"; } || ${notfound}; then
echo "afx available on your system is not found. So trying to make afx from Go!"
if command -v go >/dev/null; then
try_go
Expand Down

0 comments on commit 89ca3d0

Please sign in to comment.