Update defaults.inc
This commit is contained in:
11
defaults.inc
11
defaults.inc
@@ -42,14 +42,15 @@ if [ -f ${NM_FOLDER}/defaults.local.inc ]; then
|
||||
unset IFS
|
||||
|
||||
declare -a NODE_TYPES
|
||||
|
||||
IFS=$'\n' sorted=($(sort <<< for k in "${!NM_NODETYPES[@]}"; do
|
||||
for k in "${!NM_NODETYPES[@]}"; do
|
||||
echo "${NM_NODETYPES["$k"]} ${k}"
|
||||
done | sort -f | while read desc nmtype; do
|
||||
echo "${nmtype}"
|
||||
done)); unset IFS
|
||||
NODE_TYPES+=("${nmtype}")
|
||||
# echo "${nmtype} - $desc"
|
||||
done
|
||||
IFS=$'\n' sorted=($(sort <<<"${NM_NODETYPES[*]}")); unset IFS
|
||||
|
||||
echo "HERE: ${sorted}"
|
||||
printf "[%s]\n" "${sorted[@]}"
|
||||
|
||||
for ntype in "${NODE_TYPES[@]}"; do
|
||||
arr ${ntype}_HOSTS
|
||||
|
||||
Reference in New Issue
Block a user