Closed mruz closed 4 months ago
This is good to go, some small change needed since I want to leave darwin
in there, because its not necessary to change it. might be to brittle.
For darwin
I'm getting:
$ curl --silent --location https://api.github.com/repos/gabyx/Githooks/releases/tags/v2.8.0 \
| jq --raw-output ".assets[] | select( (.name | contains(\"darwin\")) and (.name | contains(\"arm64\")) ) | .browser_download_url"
$ curl --silent --location https://api.github.com/repos/gabyx/Githooks/releases/tags/v2.8.0 \
| jq --raw-output ".assets[] | select( (.name | contains(\"macos\")) and (.name | contains(\"arm64\")) ) | .browser_download_url"
https://github.com/gabyx/Githooks/releases/download/v2.8.0/githooks-2.8.0-macos.arm64.tar.gz
Ah, ok thanks for the hint! But could you leave darwin
in the paltform script and make an darwin
to macos
overwrite in the install.sh
script. That might be better!
Thanks for the patch.
@mruz : I changed it, will merge in a second.
On openSUSE I have just
linux
in$OSTYPE
and filenames havemacos
in the name https://github.com/gabyx/Githooks/releases/tag/v2.8.0