Update temp.inc.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user