From 3ba9645099cfdeff8b594164eeb817328c801f96 Mon Sep 17 00:00:00 2001 From: Richard Top Date: Tue, 23 Jul 2024 09:06:58 +0000 Subject: [PATCH] Use readlink -f instead of realpath (CentOS6)1 --- init/eessi_archdetect.sh | 1 + init/eessi_environment_variables | 1 + init/minimal_eessi_env | 1 + 3 files changed, 3 insertions(+) diff --git a/init/eessi_archdetect.sh b/init/eessi_archdetect.sh index 3f0adf6938..e8b7413203 100755 --- a/init/eessi_archdetect.sh +++ b/init/eessi_archdetect.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# VERSION="1.1.0" # default log level: only emit warnings or errors diff --git a/init/eessi_environment_variables b/init/eessi_environment_variables index 933826011a..ea6e20dc19 100644 --- a/init/eessi_environment_variables +++ b/init/eessi_environment_variables @@ -1,5 +1,6 @@ # this script is *sourced*, not executed, so can't rely on $0 to determine path to self # $BASH_SOURCE points to correct path, see also http://mywiki.wooledge.org/BashFAQ/028 +# EESSI_INIT_DIR_PATH=$(dirname $(readlink -f $BASH_SOURCE)) function error() { diff --git a/init/minimal_eessi_env b/init/minimal_eessi_env index 8dff836f90..3a9f30a2d4 100644 --- a/init/minimal_eessi_env +++ b/init/minimal_eessi_env @@ -1,5 +1,6 @@ # define minimal NESSI environment, without relying on external scripts # +# # this script is *sourced*, not executed, so can't rely on $0 to determine path to self # $BASH_SOURCE points to correct path, see also http://mywiki.wooledge.org/BashFAQ/028 EESSI_INIT_DIR_PATH=$(dirname $(readlink -f $BASH_SOURCE))