mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-23 08:17:56 +02:00
Merge branch '283-modulecmd-trat-unset-variables-as-errors-and-set-pipefail' into 'master'
Resolve "modulecmd: treat unset variables as errors and set pipefail" Closes #283 See merge request Pmodules/src!261
This commit is contained in:
@@ -1,18 +1,13 @@
|
||||
#!@BASH@ --noprofile
|
||||
#
|
||||
|
||||
#
|
||||
# which information do we need for overlays?
|
||||
# - list of used overlays by name
|
||||
# - dict to map an overlay name to install_root
|
||||
# - dict to map an overlay name to modulefile_root
|
||||
# - dict to map an overlay name to the overlay type
|
||||
# - dict to map moduledirs to overlay name
|
||||
|
||||
unset CDPATH # unset CDPATH, otherwise 'cd' prints the directoy!
|
||||
unset IFS # use default IFS
|
||||
|
||||
shopt -s nullglob
|
||||
#set -e # exit on error
|
||||
set -u # Treat unset variables as an error
|
||||
set -o pipefail
|
||||
|
||||
# used in some output messages only
|
||||
declare -r CMD='module'
|
||||
|
||||
Reference in New Issue
Block a user