# HG changeset patch # User Omair Majid # Date 1426001971 14400 # Node ID 1cfebde69814cb96ca99f09c42a5474bc9ee8ed5 # Parent c6ae78b6f3acefbd74420504b6c00fde72f0c5a7 Don't break terminal on Ctrl-c when reading password PR2268 Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2015-March/013058.html diff -r c6ae78b6f3ac -r 1cfebde69814 distribution/scripts/thermostat-setup --- a/distribution/scripts/thermostat-setup Wed Mar 11 15:07:27 2015 +0100 +++ b/distribution/scripts/thermostat-setup Tue Mar 10 11:39:31 2015 -0400 @@ -56,6 +56,8 @@ # For debugging #set -xv +tty_flags="$(stty -g)" + # Interruptions are failures trap exitFail SIGINT @@ -122,6 +124,7 @@ removeTempStampFile cleanupSedFiles echo 'Thermostat setup failed!' 1>&2 + stty "$tty_flags" exit 1 }