Skip to content

Commit

Permalink
Enhance install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0926 committed May 15, 2017
1 parent c094b97 commit 9653753
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@ curl "https://api.github.com/repos/mono0926/LicensePlist/releases" \
| jq -r '.[0].browser_download_url' \
| xargs -n1 curl -LOk
unzip license-plist.zip
if [ $? -ne 0 ]
then
echo "Filed to download the latest executable binary. Maybe the GitHub API limit occurs. Try other installation methods(see: https://github.com/mono0926/LicensePlist#installation )."
exit 1
fi
cp -f license-plist /usr/local/bin/license-plist
echo "Installed at $(which license-plist) 🎉"

0 comments on commit 9653753

Please sign in to comment.