Skip to content

Commit

Permalink
chore: update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nfurfaro committed Jan 23, 2024
1 parent f6f24a9 commit e49e54b
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions scripts/install.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@ case $selection in
esac

# Download the binary using cURL
curl -LO https://github.com/nfurfaro/hunter/releases/download/$version/$binary
if curl -LO https://github.com/nfurfaro/hunter/releases/download/$version/$binary; then
echo "Binary downloaded successfully."
else
echo "Failed to download binary."
exit 1
fi

# Make the binary executable
chmod +x $binary

# Move the binary to a directory in your PATH
# mv $binary /usr/local/bin/hunter

# Confirm installation
if command -v hunter &> /dev/null
then
echo "Hunter was installed successfully."
if chmod +x $binary; then
echo "Binary made executable."
else
echo "Hunter could not be installed."
echo "Failed to make binary executable."
exit 1
fi

0 comments on commit e49e54b

Please sign in to comment.