Skip to content

Commit 0034202

Browse files
committed
updated mouse_clicks.sh
1 parent a37f583 commit 0034202

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

applescript/mouse_clicks.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ if ! [[ "$num" =~ ^-?[[:digit:]]+$ ]]; then
4949
usage "invalid non-integer '$num' given for first argument"
5050
fi
5151

52-
if ! [[ "$sleep_secs" =~ ^[[:digit:]]+(\.[[:digit:]]+)?$ ]]; then
52+
if ! is_float "$start_delay"; then
53+
usage "invalid non-float '$START_DELAY' found in environment for \$START_DELAY"
54+
fi
55+
56+
if ! is_float "$sleep_secs"; then
5357
usage "invalid non-float '$SLEEP_SECS' found in environment for \$SLEEP_SECS"
5458
fi
5559

0 commit comments

Comments
 (0)