Skip to content

Commit 60a53a7

Browse files
committed
another try
1 parent c6a29cd commit 60a53a7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/scripts/test_init_scripts.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ for shell in ${SHELLS[@]}; do
166166
assert_raises 'echo "$TEST_EESSI_EXPLICIT_NO_PS1_UPDATE" | grep "$pattern"' 1
167167
assert_raises 'echo "$TEST_EESSI_EXPLICIT_NO_PS1_UPDATE_CALLED_TWICE" | grep "$pattern"' 1
168168
# Also check complex prompts, and unloading/purging the EESSI module
169-
sed "s/__EESSI_VERSION_DEFAULT__/${EESSI_VERSION}/" init/lmod/sh >init/lmod/sh.test
170-
ln -sr init/lmod/sh.test init/lmod/bash.test
171-
ln -sr init/lmod/sh.test init/lmod/ksh.test
172-
ln -sr init/lmod/sh.test init/lmod/zsh.test
169+
sed 's|export MODULEPATH=.*|export MODULEPATH=init/modules|' init/lmod/sh >init/lmod/sh.test
170+
ln -srf init/lmod/sh.test init/lmod/bash.test
171+
ln -srf init/lmod/sh.test init/lmod/ksh.test
172+
ln -srf init/lmod/sh.test init/lmod/zsh.test
173173
prompt="\$(echo '\['✘) $ "
174174
promptstr="\[✘ $ "
175175
updated_promptstr="{EESSI/${EESSI_VERSION}} \[✘ $ "

0 commit comments

Comments
 (0)