mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-28 18:29:39 +02:00
Merge branch '326-modulecmd-try-to-create-directories-of-the-overlays' into 'master'
Resolve "modulecmd: try to create directories of the overlays" Closes #326 See merge request Pmodules/src!305
This commit is contained in:
@@ -156,6 +156,7 @@ pm::read_config(){
|
||||
install_root )
|
||||
pm::get_value "${yaml_input}" value "${key}" '!!str'
|
||||
OverlayInfo[${ol_name}:install_root]=$(${envsubst} <<< "${value}")
|
||||
mkdir -p "${OverlayInfo[${ol_name}:install_root]}" 2>/dev/null
|
||||
[[ -d ${OverlayInfo[${ol_name}:install_root]} ]] || \
|
||||
std::die 3 \
|
||||
"Invalid installation root directory for overlay '${ol_name}' -- ${value}"
|
||||
@@ -163,6 +164,7 @@ pm::read_config(){
|
||||
modulefiles_root )
|
||||
pm::get_value "${yaml_input}" value "${key}" '!!str'
|
||||
OverlayInfo[${ol_name}:modulefiles_root]=$(${envsubst} <<< "${value}")
|
||||
mkdir -p "${OverlayInfo[${ol_name}:modulefiles_root]}" 2>/dev/null
|
||||
[[ -d ${OverlayInfo[${ol_name}:modulefiles_root]} ]] || \
|
||||
std::die 3 \
|
||||
"Invalid modulefiles root directory for overlay '${ol_name}' -- ${value}"
|
||||
|
||||
Reference in New Issue
Block a user