Files
modules/doc/example/compiler-etc-dependencies/example-sessions/foo-switch.sh
Lukáš Zaoral d018f7a9e6 lint(ShellCheck): fix SC2086 info diagnostic
Some variables, that were unquoted intentionally were converted to arrays.

According to ShellCheck's documentation:

Quoting variables prevents word splitting and glob expansion, and prevents
the script from breaking when input contains spaces, line feeds, glob
characters and such.

Related: https://www.shellcheck.net/wiki/SC2086
Related: #470
2022-09-02 09:52:05 +02:00

23 lines
510 B
Bash

#!/bin/bash
source "$MOD_GIT_ROOTDIR"/doc/example/compiler-etc-dependencies/example-sessions/common_code.sh
do_cmd module purge
do_cmd module load pgi/18.4
do_cmd module load openmpi/3.1
do_cmd module load foo/1.1
do_cmd module list
do_cmd foo
do_cmd module switch "$AUTOFLAG" pgi intel/2018
do_cmd module list
do_cmd foo
do_cmd mpirun
do_cmd module purge
do_cmd module load intel/2019
do_cmd module load foo
do_cmd module list
do_cmd foo
do_cmd module load "$AUTOFLAG" openmpi
do_cmd module list
do_cmd foo