mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-28 02:19:39 +02:00
modulecmd: set -u commented out
This commit is contained in:
@@ -6,7 +6,7 @@ unset IFS # use default IFS
|
||||
|
||||
shopt -s nullglob
|
||||
#set -e # exit on error
|
||||
set -u # Treat unset variables as an error
|
||||
#set -u # Treat unset variables as an error
|
||||
set -o pipefail
|
||||
|
||||
# used in some output messages only
|
||||
@@ -3494,7 +3494,7 @@ if [[ -z "${subcommand}" ]]; then
|
||||
std::die 1 "${CMD}: no sub-command specified."
|
||||
fi
|
||||
|
||||
if [[ -z "${Subcommands[${subcommand}]}" ]]; then
|
||||
if [[ ! -v Subcommands[${subcommand}] ]]; then
|
||||
std::die 1 "${CMD}: unknown sub-command -- ${subcommand}"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user