summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 () {