diff --git a/aircon.sh b/aircon.sh index 90d32c9..6e09c6d 100755 --- a/aircon.sh +++ b/aircon.sh @@ -1574,7 +1574,7 @@ fi ALLARGS="$ALLARGS $*" -optstring="A:cDf:hHi:I:k:l:Lo:pmsSt:T:wx:y" +optstring="A:cD:f:hHi:I:k:l:Lo:pmsSt:T:wx:y" while getopts "$optstring" i $ALLARGS; do case "$i" in h) @@ -1591,7 +1591,7 @@ while getopts "$optstring" i $ALLARGS; do AIRCON_IP=${OPTARG} ;; D) - influxhost=${OPTARG} + influxhost="${OPTARG}" ;; I) logmode=2 @@ -1622,7 +1622,7 @@ while getopts "$optstring" i $ALLARGS; do enable_cronmode ;; p) - profiler=1 + profiler=1 info "Profiler mode enabled" ;; m)