Skip to content

Commit ff87db9

Browse files
committed
Fix the check
1 parent 7e16928 commit ff87db9

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/minimal_usage_bash_init.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
# Declare default permissions as read only.
1313
permissions: read-all
1414
jobs:
15-
minimal_usage:
15+
minimal_usage_bash_script:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
@@ -29,7 +29,12 @@ jobs:
2929
- name: Test EESSI
3030
run: |
3131
module avail
32-
module list |& grep -q "EESSI/"
32+
if ! module list |& grep -q "EESSI/"; then
33+
echo "EESSI module is NOT loaded"
34+
else
35+
echo "EESSI module is loaded but shouldn't be"
36+
exit 1
37+
fi
3338
shell: bash
3439
- name: Test available repos
3540
run: |

0 commit comments

Comments
 (0)