Skip to content

Commit

Permalink
Use readlink -f instead of realpath (CentOS6)1
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Top committed Jul 23, 2024
1 parent 42f3490 commit 3ba9645
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions init/eessi_archdetect.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
#
VERSION="1.1.0"

# default log level: only emit warnings or errors
Expand Down
1 change: 1 addition & 0 deletions init/eessi_environment_variables
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
1 change: 1 addition & 0 deletions init/minimal_eessi_env
Original file line number Diff line number Diff line change
@@ -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))
Expand Down

0 comments on commit 3ba9645

Please sign in to comment.