Detect default temperature unit selection
This commit is contained in:
parent
a06df57cb9
commit
9c7dc540d8
@ -188,8 +188,12 @@ function configure {
|
|||||||
[fF])
|
[fF])
|
||||||
TEMP_UNIT="F"
|
TEMP_UNIT="F"
|
||||||
;;
|
;;
|
||||||
|
"")
|
||||||
|
info "No unit selected. Temperatures will be presented in degrees Celsius."
|
||||||
|
TEMP_UNIT="C"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
warn "Invalid selection. Temperatures will be presented in degrees Celsius."
|
warn "Invalid unit selected. Temperatures will be presented in degrees Celsius."
|
||||||
TEMP_UNIT="C"
|
TEMP_UNIT="C"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user