Change first if conditional so upgrade q only asked if opam installed

This commit is contained in:
John David Pressman 2019-06-08 14:19:07 -07:00
parent 1592da58b7
commit 512044c52b

View File

@ -6,7 +6,6 @@ then
then then
echo "Opam 2.x seems to already exist, exiting..." echo "Opam 2.x seems to already exist, exiting..."
exit 1 exit 1
fi
else else
read -p "This script will upgrade opam to the 2.x series, are you okay with that? (y/n)" choice1 read -p "This script will upgrade opam to the 2.x series, are you okay with that? (y/n)" choice1
case "$choice1" in case "$choice1" in
@ -14,6 +13,7 @@ else
n|N ) exit ;; n|N ) exit ;;
esac esac
fi fi
fi
sudo apt-get install -y make \ sudo apt-get install -y make \
m4 \ m4 \