Commit 2c28d3b2 authored by Michael Sproul's avatar Michael Sproul Committed by Grégoire Henry

Scripts: make `opam env` invocation more robust

Tells `opam env` to explicitly use the init script for `sh`, which prevents it
from picking an incompatible script for another shell. In particular, the init
script for `fish` makes no sense when evaluated in `sh`.
parent 9e2f8ba8
Pipeline #25676343 failed with stages
in 17 minutes and 4 seconds
......@@ -22,7 +22,7 @@ if [ ! -d "$src_dir/_opam" ] ; then
exit 1
eval $(opam env)
eval $(opam env --shell=sh)
if [ "$(ocaml -vnum)" != "$ocaml_version" ]; then
opam install --unlock-base ocaml-base-compiler.$ocaml_version
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment