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

[FIX] Pug always fails with 'failed to read gist.' #17

Open
Raptorox opened this issue Jan 14, 2024 · 1 comment
Open

[FIX] Pug always fails with 'failed to read gist.' #17

Raptorox opened this issue Jan 14, 2024 · 1 comment

Comments

@Raptorox
Copy link

Every time I updated my system Pug would say 'failed to read gist.'
After I poked around the script a bit I found that it calls gist with a URL, but it only accepts gist id's.
As a workaround, I have added 2 variables,

GIST_NAT_SPLIT=$(echo $GIST_NAT | tr "/" " " | awk '{print $2}')
GIST_AUR_SPLIT=$(echo $GIST_AUR | tr "/" " " | awk '{print $2}')

and replaced GIST_NAT/GIST_AUR with GIST_NAT_SPLIT/GIST_AUR_SPLIT in the part of the code that reads the gists.
Would open a PR for this, but I have no idea how PR's work, so I'm opening this issue instead.

@OZoneGuy
Copy link

Created a PR, see #18.

In the meanwhile, I think you can just update the /etc/pug file to remove the username from the value and it should work.

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