mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
According to ShellCheck's documentation: In the original code, the return value of mycmd in $(mycmd) is ignored, and export will instead always return true. This may prevent conditionals, set -e and traps from working correctly. Related: https://www.shellcheck.net/wiki/SC2155 Related: #470
7 lines
97 B
Bash
7 lines
97 B
Bash
#!/bin/bash
|
|
PATH=$(dirname "${BASH_SOURCE[0]}")/bin:$PATH
|
|
export PATH
|
|
bar() {
|
|
barbin -q -l
|
|
}
|