Skip to content

Commit

Permalink
Merge pull request #235 from mono0926/feature/mono/231-curl-install-i…
Browse files Browse the repository at this point in the history
…nstructions-no-longer-work

Fix install.sh
  • Loading branch information
mono0926 authored Jan 24, 2025
2 parents 92fba80 + f9690ff commit ffab196
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/sh
curl "https://api.github.com/repos/mono0926/LicensePlist/releases" \
| jq -r '.[0].assets_url' \
| jq -r '.[1].assets_url' \
| xargs -n1 curl \
| jq -r '.[0].browser_download_url' \
| jq -r '.[1].browser_download_url' \
| xargs -n1 curl -LOk
unzip license-plist.zip
unzip portable_licenseplist.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
sudo cp -f license-plist /usr/local/bin/license-plist
echo "Installed at $(which license-plist) 🎉"

0 comments on commit ffab196

Please # to comment.