Skip to content

Commit

Permalink
Abort installation if update fails, ref paritytech#8
Browse files Browse the repository at this point in the history
  • Loading branch information
5chdn committed Mar 21, 2017
1 parent dbdf9f4 commit d380796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install-parity.sh
Expand Up @@ -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
}

Expand Down Expand Up @@ -385,6 +385,7 @@ function run_installer()
if [[ $OPERATOR != '=' ]]
then
error "Parity update failed"
abortInstall
else
success "Parity has been installed"
fi
Expand Down

0 comments on commit d380796

Please sign in to comment.