Skip to content

Commit

Permalink
Merge pull request bauerj#8 from altergui/master
Browse files Browse the repository at this point in the history
fix conditional blocks, group echo and exit together
  • Loading branch information
bauerj authored Nov 22, 2017
2 parents b8a0569 + abd181a commit 64980f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ fi
if which git > /dev/null 2>&1; then
git clone https://github.com/bauerj/electrumx-installer ~/.electrumx-installer
else
which wget > /dev/null 2>&1 && which unzip > /dev/null 2>&1 || echo "Please install git or wget and unzip" && exit 1
which wget > /dev/null 2>&1 && which unzip > /dev/null 2>&1 || { echo "Please install git or wget and unzip" && exit 1 ; }
wget https://github.com/bauerj/electrumx-installer/archive/master.zip -O /tmp/electrumx-master.zip
unzip /tmp/electrumx-master.zip -d ~/.electrumx-installer
rm /tmp/electrumx-master.zip
fi
cd ~/.electrumx-installer/
if [[ $EUID -ne 0 ]]; then
which sudo > /dev/null 2>&1 || echo "You need to run this script as root" && exit 1
which sudo > /dev/null 2>&1 || { echo "You need to run this script as root" && exit 1 ; }
sudo -H ./install.sh "$@"
else
./install.sh "$@"
Expand Down

0 comments on commit 64980f6

Please sign in to comment.