qusal/salt/mirage-builder/files/client/profile/opam.sh

13 lines
406 B
Bash
Raw Normal View History

2023-11-13 09:33:28 -05:00
#!/bin/sh
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
##
## SPDX-License-Identifier: AGPL-3.0-or-later
# shellcheck disable=SC1091
if test -n "${ZSH_VERSION-}" && test -r "$HOME/.opam/opam-init/init.zsh"; then
. "$HOME/.opam/opam-init/init.zsh" >/dev/null 2>&1
elif test -r "$HOME/.opam/opam-init/init.sh"; then
. "$HOME/.opam/opam-init/init.sh" >/dev/null 2>&1
fi