Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow initialisation scripts to be used with bash < 4.2 #643

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion init/bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function show_msg {
# only echo msg if EESSI_SILENT is unset
msg=$1
if [[ ! -v EESSI_SILENT ]]; then
if [[ -z ${EESSI_SILENT+x} ]]; then
bedroge marked this conversation as resolved.
Show resolved Hide resolved
echo "$msg"
fi
}
Expand Down
2 changes: 1 addition & 1 deletion init/eessi_defaults
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if [[ $(uname -m) == "riscv64" ]]; then
export EESSI_CVMFS_REPO="${EESSI_CVMFS_REPO_OVERRIDE:=/cvmfs/riscv.eessi.io}"
export EESSI_VERSION="${EESSI_VERSION_OVERRIDE:=20240402}"
if [[ ! -v EESSI_SILENT ]]; then
if [[ -z ${EESSI_SILENT+x} ]]; then
echo "RISC-V architecture detected, but there is no RISC-V support yet in the production repository."
echo "Automatically switching to version ${EESSI_VERSION} of the RISC-V development repository ${EESSI_CVMFS_REPO}."
echo "For more details about this repository, see https://www.eessi.io/docs/repositories/riscv.eessi.io/."
Expand Down
2 changes: 1 addition & 1 deletion init/eessi_environment_variables
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function error() {
function show_msg {
# only echo msg if EESSI_SILENT is unset
msg=$1
if [[ ! -v EESSI_SILENT ]]; then
if [[ -z ${EESSI_SILENT+x} ]]; then
echo "$msg"
fi
}
Expand Down