diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-08-15 19:01:24 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-08-15 19:01:24 +0200 |
commit | e95534f6ca4f49eff4da95e612f9b4c9f4c46d3e (patch) | |
tree | dc8e6ba1c5622bd6eccca677abfb788213a7a319 | |
parent | b918cb2fd66b06bedab29bd7f367075f09c532d9 (diff) | |
download | watch-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>
-rwxr-xr-x | watch-bz | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 () { |