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

Prevent error for hugo --gc flag if there are no images in resources #6326

Closed
Brixy opened this issue Sep 12, 2019 · 0 comments

Comments

@Brixy
Copy link

commented Sep 12, 2019

In order to use default flags (including --gc) for hugo (server) I work with bash aliases.

Yet, when there is a resources folder without an images in it you get this error message:

Error: failed to prune cache "images": remove …/resources/_gen/images: no such file or directory

It would probably be better if Hugo just ignored a missing images folder.

Maybe related to #5745

@bep bep added the Enhancement label Sep 12, 2019
@bep bep added this to the v0.59 milestone Sep 12, 2019
@bep bep closed this in fcfa6f3 Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.