summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwatch-bz2
1 files changed, 2 insertions, 0 deletions
diff --git a/watch-bz b/watch-bz
index d8d7aab..5370b17 100755
--- a/watch-bz
+++ b/watch-bz
@@ -89,6 +89,7 @@ do_logout () {
do_init_login () {
if [ -z "$BZPASSWORD" ]; then
+ trap 'stty echo; exit' INT
trap return USR1
{
timeout 60 /bin/sh -c \
@@ -100,6 +101,7 @@ do_init_login () {
} & read -s -p 'Password (1 min timeout): ' BZPASSWORD \
|| return $?
trap '' USR1
+ trap '' INT
fi
rm -f -- ${BUGZILLA_COOKIE}.init