Skip to content

Commit

Permalink
strip trailing dot
Browse files Browse the repository at this point in the history
  • Loading branch information
ipitio committed Jan 26, 2024
1 parent 42461aa commit 509d668
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions advanced/Scripts/webpage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ ClearSpeedtestData() {
}

ChangeSpeedTestSchedule() {
args[2]=${args[2]%\.}
if [[ "${args[2]-}" =~ ^([0-9]+(\.[0-9]+)?|\.[0-9]+)$ ]]; then
if (( $(echo "${args[2]} >= 0" | bc -l) )); then
addOrEditKeyValPair "${setupVars}" "SPEEDTESTSCHEDULE" "${args[2]}"
Expand Down

0 comments on commit 509d668

Please sign in to comment.