From e95534f6ca4f49eff4da95e612f9b4c9f4c46d3e Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Thu, 15 Aug 2013 19:01:24 +0200 Subject: Do not remove cookie needlessly (and complain about it) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only do it if logging process undertaken. Signed-off-by: Jan Pokorný --- watch-bz | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 () { -- cgit