Skip to content

Commit

Permalink
Merge pull request #40 from tmattio/check-switch
Browse files Browse the repository at this point in the history
Check if switch exists before creating
  • Loading branch information
smorimoto authored Sep 10, 2020
2 parents 6b0175c + 9764f82 commit 1fcce69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/install-ocaml-unix.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/install-ocaml-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ set -ex
CURRENT_OCAML=$(opam info -f version ocaml --color=never)

if [ "$CURRENT_OCAML" != "$1" ]; then
opam switch create "$1" "$1"
opam switch set "$1" || opam switch create "$1" "$1"
fi

0 comments on commit 1fcce69

Please sign in to comment.