Update temp.inc.sh

This commit is contained in:
2023-12-14 18:42:19 -06:00
parent 0e0d730072
commit ee376b12f5

View File

@@ -526,6 +526,12 @@ DAILYTEMP(){
[ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ] && echo
done
}
function print_array {
# eval string into a new associative array
eval "declare -A func_assoc_array="${1#*=}
# proof that array was successfully created
declare -p func_assoc_array
}
GET_LACROSSE_INFO(){
@@ -543,12 +549,6 @@ GET_LACROSSE_INFO(){
# echo ${DEVICE_INFO[${2}]}
}
function print_array {
# eval string into a new associative array
eval "declare -A func_assoc_array="${1#*=}
# proof that array was successfully created
declare -p func_assoc_array
}
INFO=$(GET_LACROSSE_INFO "ServerRoomLA")
# IFS=$'~'; read -rd '' -a INFO <<<"${INFO}"; unset IFS