Change first if conditional so upgrade q only asked if opam installed
This commit is contained in:
parent
1592da58b7
commit
512044c52b
@ -6,13 +6,13 @@ 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
|
||||||
|
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
|
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
|
fi
|
||||||
|
|
||||||
sudo apt-get install -y make \
|
sudo apt-get install -y make \
|
||||||
|
Loading…
Reference in New Issue
Block a user