Skip to content

Commit 1fcce69

Browse files
authored
Merge pull request #40 from tmattio/check-switch
Check if switch exists before creating
2 parents 6b0175c + 9764f82 commit 1fcce69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/install-ocaml-unix.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/install-ocaml-unix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ set -ex
88
CURRENT_OCAML=$(opam info -f version ocaml --color=never)
99

1010
if [ "$CURRENT_OCAML" != "$1" ]; then
11-
opam switch create "$1" "$1"
11+
opam switch set "$1" || opam switch create "$1" "$1"
1212
fi

0 commit comments

Comments
 (0)