Skip to content

Commit

Permalink
fix lat/lon number check
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwall committed Jul 4, 2024
1 parent 7ccb5a1 commit 80f0f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ WEEWX_HTMLDIR="${WEEWX_HTMLDIR:-/var/www/html/weewx}"
WEEWX_USERDIR=/etc/weewx/bin/user
WEEWX_INSTANCES="${WEEWX_INSTANCES:-weewx}"

is_num() { case ${1#[-]} in '' | . | *[!0-9.]* | *.*.* ) return 1;; esac }
is_num() { x=`echo $1 | grep "^[+-]\?[0-9]\+$"`; echo $x; }

# insert the driver and stanza into the configuration file
insert_driver() {
Expand Down

0 comments on commit 80f0f44

Please sign in to comment.