rreadable

This commit is contained in:
Sebastian
2024-03-25 00:10:51 +01:00
parent bcae174cb0
commit f8e1f0ccf4

View File

@@ -11,18 +11,14 @@ default_array=()
for key in $(jq -r 'keys[]' <<< "$json"); do
default_values=$(jq -r ".[\"$key\"].default[]" <<< "$json")
default_array+=($default_values)
done
for node in "${default_array[@]}"; do
#echo "check $node"
for node in "${default_values[@]}"; do
size_in_gb=$($BASEPATH/restore-volumes.sh "$node" --print-size-only)
if [ $? -eq 0 ]; then
echo "$node: $size_in_gb"
# else
# echo "$node can not"
echo "$key;$node;$size_in_gb"
fi
done
# Print the combined array
#printf "%s\n" "${default_array[@]}"
done