From 2c28d3b20203c2ef5f56a362e031b02314d87a1d Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Sun, 8 Jul 2018 16:12:32 +1000 Subject: [PATCH] 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`. --- scripts/install_build_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_build_deps.sh b/scripts/install_build_deps.sh index 143697090..3d9eedb46 100755 --- a/scripts/install_build_deps.sh +++ b/scripts/install_build_deps.sh @@ -22,7 +22,7 @@ if [ ! -d "$src_dir/_opam" ] ; then exit 1 fi -eval $(opam env) +eval $(opam env --shell=sh) if [ "$(ocaml -vnum)" != "$ocaml_version" ]; then opam install --unlock-base ocaml-base-compiler.$ocaml_version