Skip to content

Commit

Permalink
quote the arg to number match
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwall committed Jul 4, 2024
1 parent a988560 commit 99c414f
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() { x=`echo $1 | grep "^[+-]\?[0-9]\+$"`; echo $x; }
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 99c414f

Please sign in to comment.