
Am Dienstag, 8. Dezember 2020, 21:05:39 CET schrieb Marcus Hüwe:
On 2020-12-08 15:46:09 +0100, Hans-Peter Jansen wrote:
Nice trick, Marcus, but I get a completely different output for that case.
$ grc osc build
# nice and expressive: https://paste.opensuse.org/91070912
root# echo > /usr/local/bin/colored_build << EOF !/bin/bash exec /usr/bin/grc /usr/bin/build "$@" EOF root# chmod +x /usr/local/bin/colored_build root# echo >> /etc/sudoers.d/local-build << EOF hp ALL = NOPASSWD: /usr/local/bin/colored_build EOF
$ osc config general build-cmd /usr/local/bin/colored_build
# rather greenish: https://paste.opensuse.org/96352274
Looks more openSUS(E)ish... so that's correct:P Joking aside,
LOL
now the grc script is executed as root - maybe that's why it does not find your (user) config files? (Just a wild guess)
Hmm, just using grc out of the box, no user centric config files in place. That would imply, grc behaves differently, when running as root. Oh well. Pete