diff options
-rwxr-xr-x | watch-bz | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,4 @@ #!/bin/bash - # jpokorny@redhat.com (will be pleased to know about further enhancements) # usage: @@ -11,6 +10,9 @@ # (or pass such string as a 1st argument) # - optionally set BZUSER to avoid the need to login manually before # the "watch session"; you can set BZPASSWORD as well but be careful! + +HERE=$(dirname $0) + BUGZILLA=$(which bugzilla 2>/dev/null) # example defaults, modify via ~/.watchbzrc @@ -86,6 +88,6 @@ watch -t --interval $REFRESH_INTERVAL \ -e \"s/requires_release_note/RN/\" \ -e \"s/rhel-//\" \ -e \"s/None//\" \ - | ./table-data $SEP | cut -c-$WIDTH" + | ${HERE}/table-data $SEP | cut -c-$WIDTH" # todo: colours for priorities (rhbz#801626) #-e 's/\(urgent\)/\^\[\[31m\1\^\[\[0m/' \ |