Skip to content

Commit e4fa51d

Browse files
committed
create, cat and test .cshrc in HOME dir
1 parent 05016f6 commit e4fa51d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/scripts/test_init_scripts.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ for shell in ${SHELLS[@]}; do
4141
# we work around this by creating a temporary .cshrc file (which sources
4242
# the init script), and then use a here-string to specify the command to
4343
# be run; the output is then processed as for other shells
44-
echo "source init/lmod/$shell 2> /dev/null" > .cshrc
44+
echo "source init/lmod/$shell 2> /dev/null" > ~/.cshrc
45+
cat ~/.cshrc
46+
$shell -l <<< "alias"
4547
MODULE_SECTIONS=($($shell -l <<< "module ov" 2>&1 | grep -e '---'))
4648
else
4749
MODULE_SECTIONS=($($shell -c "source init/lmod/$shell 2>/dev/null; module ov 2>&1 | grep -e '---'"))

0 commit comments

Comments
 (0)