From 49865ef15bc2652219363be0de0c068c4779e559 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Mon, 2 Nov 2020 18:13:53 +0100 Subject: [PATCH] Update ocam install script --- install/scripts/install_ocaml.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install/scripts/install_ocaml.sh b/install/scripts/install_ocaml.sh index e56a825..5ce0d8c 100755 --- a/install/scripts/install_ocaml.sh +++ b/install/scripts/install_ocaml.sh @@ -54,9 +54,7 @@ set -u cd Downloads chmod +x opam_installer.sh rm --force ${QMCCHEM_PATH}/bin/opam -if [[ -z "$OPAMROOT" ]] ; then - export OPAMROOT=${HOME}/.opam -fi +export OPAMROOT=${OPAMROOT:-${HOME}/.opam} if [[ -d "$OPAMROOT" ]]