summaryrefslogtreecommitdiffstats
path: root/watch-bz
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-08-15 19:01:24 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-08-15 19:01:24 +0200
commite95534f6ca4f49eff4da95e612f9b4c9f4c46d3e (patch)
treedc8e6ba1c5622bd6eccca677abfb788213a7a319 /watch-bz
parentb918cb2fd66b06bedab29bd7f367075f09c532d9 (diff)
downloadwatch-bz-e95534f6ca4f49eff4da95e612f9b4c9f4c46d3e.tar.gz
watch-bz-e95534f6ca4f49eff4da95e612f9b4c9f4c46d3e.tar.xz
watch-bz-e95534f6ca4f49eff4da95e612f9b4c9f4c46d3e.zip
Do not remove cookie needlessly (and complain about it)
Only do it if logging process undertaken. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'watch-bz')
-rwxr-xr-xwatch-bz4
1 files changed, 3 insertions, 1 deletions
diff --git a/watch-bz b/watch-bz
index cfe212f..4449212 100755
--- a/watch-bz
+++ b/watch-bz
@@ -89,7 +89,9 @@ fi
do_logout () {
- rm "${BUGZILLA_COOKIE}" && echo "watch-bz: Authorization cookie removed"
+ test -n "${BZUSER}" \
+ && rm "${BUGZILLA_COOKIE}" \
+ && echo "watch-bz: Authorization cookie removed"
}
do_init_login () {