mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-24 16:47:58 +02:00
Merge branch '431-build-system-don-t-use-hostename' into 'master'
Resolve "build-system: don't use $HOSTENAME" Closes #431 See merge request Pmodules/src!463
This commit is contained in:
@@ -162,6 +162,9 @@ declare -- module_name=''
|
||||
declare -- module_type='module'
|
||||
declare -- echo=':'
|
||||
|
||||
HostName=$(hostname -f)
|
||||
declare -r HostName
|
||||
|
||||
parse_args() {
|
||||
#
|
||||
# The first argument ($1) is the build-script, if called in the
|
||||
@@ -1223,7 +1226,7 @@ build_modules_yaml_v1(){
|
||||
local -- system
|
||||
for system in "${systems[@]}"; do
|
||||
[[ "${opt_system}" =~ ${system} ]] && return 0
|
||||
[[ "${HOSTNAME}" =~ ${system} ]] && return 0
|
||||
[[ "${HostName}" =~ ${system} ]] && return 0
|
||||
done
|
||||
std::info "%s " "Skipping variant '${version}'" \
|
||||
"for the system(s): ${systems[@]}"
|
||||
|
||||
Reference in New Issue
Block a user