Skip to content

Commit

Permalink
Merge pull request ocaml#4745 from kit-ty-kate/fix-2
Browse files Browse the repository at this point in the history
shell/install.sh: Add the ability to specify the version of opam you want
  • Loading branch information
rjbou authored Jul 26, 2021
2 parents 57937bb + 3e4126e commit 8ce42c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shell/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ usage() {
echo " is from the 2.0 branch already)"
echo " --fresh Create the opam $VERSION root from scratch"
echo " --restore VERSION Restore a backed up opam binary and root"
echo " --version VERSION Install this specific version instead of $VERSION"
echo
echo "The default is to backup if the current version of opam is 1.*, or when"
echo "using '--fresh' or '--dev'"
Expand All @@ -135,6 +136,10 @@ while [ $# -gt 0 ]; do
if [ $# -lt 2 ]; then echo "Option $1 requires an argument"; exit 2; fi
shift;
RESTORE=$1;;
--version)
if [ $# -lt 2 ]; then echo "Option $1 requires an argument"; exit 2; fi
shift;
VERSION=$1;;
--no-backup)
NOBACKUP=1;;
--backup)
Expand Down

0 comments on commit 8ce42c8

Please sign in to comment.