pug
pug copied to clipboard
Hook fails when using pamac
When using pamac (GTK or CLI) on Manjaro Linux, I get this error after every transaction:
Running post-transaction hooks...
pug.hook
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
:: Processing gists update...
:: Failed to read gist.
Error: command failed to execute correctly
I have no issues when using pacman or aurman.
Same issue. What do we need to specify and where?
The tput error messages can be avoided by checking if the script is running in an interactive shell as follows:
if [[ $- == *i* ]]; then
normal="$(tput sgr0)"
bold="$(tput bold)"
red="$(tput setaf 1)"
green="$(tput setaf 2)"
cyan="$(tput setaf 6)"
white="$(tput setaf 7)"
fi
But then of course, you will not have coloured output.
I have no idea why the gist reading fails with pamac though.
i had the same issue, and found that it says gist is not logged in, donno why :(