Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
ci
Commits
5daba6e0
Commit
5daba6e0
authored
Sep 20, 2018
by
Janno
Browse files
Add support for handling OPAM_SWITCh env var.
parent
5979cc63
Changes
1
Hide whitespace changes
Inline
Side-by-side
prepare-opam.sh
View file @
5daba6e0
...
...
@@ -17,7 +17,12 @@ if test -d "$OPAMROOT"; then
else
echo_color
"
$BOLDYELLOW
"
"[prepare-opam] Creating new opam root"
mkdir
"
$OPAMROOT
"
opam init
--no-setup
--disable-sandboxing
-y
if
[[
-z
"
${
OPAM_SWITCH
}
"
]]
;
then
INITIAL_SWITCH
=
""
;
else
INITIAL_SWITCH
=
"-c
${
OPAM_SWITCH
}
"
;
fi
;
opam init
--no-setup
--disable-sandboxing
-y
"
${
INITIAL_SWITCH
}
"
FRESH_OPAM
=
yes
fi
eval
`
opam conf
env
`
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment