pug icon indicating copy to clipboard operation
pug copied to clipboard

Hook fails when using pamac

Open yochananmarqos opened this issue 5 years ago • 3 comments

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.

yochananmarqos avatar Nov 06 '18 02:11 yochananmarqos

Same issue. What do we need to specify and where?

davidpomerenke avatar Mar 04 '19 20:03 davidpomerenke

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.

carlblomqvist avatar Jun 09 '20 13:06 carlblomqvist

i had the same issue, and found that it says gist is not logged in, donno why :(

GeethanadhP avatar Jun 28 '20 23:06 GeethanadhP