Skip to content

Commit

Permalink
Merge pull request EESSI#432 from TopRichard/nessi-2023.06-readlink-r…
Browse files Browse the repository at this point in the history
…ealpath1

Use readlink -f instead of realpath (CentOS6)1
  • Loading branch information
TopRichard authored Jul 23, 2024
2 parents 42f3490 + 3ba9645 commit 3146fa6
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 3146fa6

Please sign in to comment.