From d3807966d7385c4f44cce348ef1503293a8926f1 Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Tue, 21 Mar 2017 10:13:36 +0100 Subject: [PATCH] Abort installation if update fails, ref #8 --- install-parity.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-parity.sh b/install-parity.sh index 69c814de..84f1ef2d 100755 --- a/install-parity.sh +++ b/install-parity.sh @@ -96,7 +96,7 @@ function run_installer() function wait_for_user() { if [[ $( ask_user "$1" ) == false ]]; then - abort_install "${red}==>${reset} Process stopped by user. To resume the install run the one-liner command again." + abortInstall "${red}==>${reset} Process stopped by user. To resume the install run the one-liner command again." fi } @@ -385,6 +385,7 @@ function run_installer() if [[ $OPERATOR != '=' ]] then error "Parity update failed" + abortInstall else success "Parity has been installed" fi