diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-08-09 17:37:04 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-08-09 17:37:04 +0300 |
commit | 5e8ed0cd00e40b5ca45ef2b079e3254e90bcd166 (patch) | |
tree | 0a46716d43ae168a0a9dcf439bcd4f6538a5a458 /netdata-installer.sh | |
parent | 2d6660fc9c80880f40804e0bc45520bd1d5507a3 (diff) |
break the installer on control-d; fixes #2574
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 7dacd9343c..4975e19792 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -392,8 +392,10 @@ if [ ${DONOTWAIT} -eq 0 ] if [ ! -z "${NETDATA_PREFIX}" ] then eval "read >&2 -ep \$'\001${TPUT_BOLD}${TPUT_GREEN}\002Press ENTER to build and install netdata to \'\001${TPUT_CYAN}\002${NETDATA_PREFIX}\001${TPUT_YELLOW}\002\'\001${TPUT_RESET}\002 > ' -e -r REPLY" + [ $? -ne 0 ] && exit 1 else eval "read >&2 -ep \$'\001${TPUT_BOLD}${TPUT_GREEN}\002Press ENTER to build and install netdata to your system\001${TPUT_RESET}\002 > ' -e -r REPLY" + [ $? -ne 0 ] && exit 1 fi fi |