Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download script #99

Closed
tcurdt opened this issue Sep 17, 2019 · 1 comment
Closed

download script #99

tcurdt opened this issue Sep 17, 2019 · 1 comment

Comments

@tcurdt
Copy link

tcurdt commented Sep 17, 2019

I'd suggest updating the download script in the README to something more along the lines of

PLATFORM=linux # mac or win
URL=`curl -s https://api.github.com/repos/piranha/gostatic/releases | awk '/download_url.*64-'$PLATFORM'/ { gsub(/"/, "", $2); print $2; exit }'`
curl -sL $URL -o gostatic
chmod a+x gostatic

The call to curl was missing a follow redirects and it seems to need a chmod. Also the URL should not have quotes.

At least on mac it works that way.

@piranha
Copy link
Owner

piranha commented Sep 18, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants