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

Unable to get the hugo themes using make get-hugo-theme #118

Open
vikineema opened this issue Feb 1, 2022 · 3 comments
Open

Unable to get the hugo themes using make get-hugo-theme #118

vikineema opened this issue Feb 1, 2022 · 3 comments

Comments

@vikineema
Copy link
Collaborator

vikineema commented Feb 1, 2022

@timlinux Running the make get-hugo-theme target gives the following error:
image

@bronsontheblack
Copy link

The wget at the end of the make get-hugo-theme target is using the -O flag which outputs to standard out. The intent could be to use the -O- flag which outputs to a file(eg. the site_template, or src/themes directories), but there is no file specified. Here is a more complete explanation here https://stackoverflow.com/questions/9830242/what-does-wget-o-mean

@export THEME=clarity; wget -O - https://github.com/gohugoio/hugoThemes | grep '<a data-skip-pjax="true" href="' | grep -o "<span title=\".*\">" | sed 's/<span title="//g' | sed 's/"><a data-skip-pjax="true" href="/ /g' | sed 's/">//g' | sed 's/\/tree\//\/archive\//g' | awk '{print $1 , "https://github.com"$4".zip" }' > themes.txt ; egrep "${THEME}" themes.txt | awk '{print $2}' | xargs wget -O ${THEME}.zip

@bronsontheblack
Copy link

actually after posting that I noticed a -O - instead of a -O- in the first wget too. I'll see if fixing that works locally.

@bronsontheblack
Copy link

So with the -O- change in the target, it works, but only if I remove it from the Makefile. I'm not sure what to do at this point, but I hope it helped.

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