From 512044c52bcea33884bd42ba5983830ae49f8a02 Mon Sep 17 00:00:00 2001 From: John David Pressman Date: Sat, 8 Jun 2019 14:19:07 -0700 Subject: [PATCH] Change first if conditional so upgrade q only asked if opam installed --- scripts/install_build_environment.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install_build_environment.sh b/scripts/install_build_environment.sh index f2c45d757..fcf77f06a 100755 --- a/scripts/install_build_environment.sh +++ b/scripts/install_build_environment.sh @@ -6,13 +6,13 @@ then then echo "Opam 2.x seems to already exist, exiting..." exit 1 + else + read -p "This script will upgrade opam to the 2.x series, are you okay with that? (y/n)" choice1 + case "$choice1" in + y|Y ) : ;; + n|N ) exit ;; + esac fi -else - read -p "This script will upgrade opam to the 2.x series, are you okay with that? (y/n)" choice1 - case "$choice1" in - y|Y ) : ;; - n|N ) exit ;; - esac fi sudo apt-get install -y make \