We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a37f583 commit 0034202Copy full SHA for 0034202
applescript/mouse_clicks.sh
@@ -49,7 +49,11 @@ if ! [[ "$num" =~ ^-?[[:digit:]]+$ ]]; then
49
usage "invalid non-integer '$num' given for first argument"
50
fi
51
52
-if ! [[ "$sleep_secs" =~ ^[[:digit:]]+(\.[[:digit:]]+)?$ ]]; then
+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
57
usage "invalid non-float '$SLEEP_SECS' found in environment for \$SLEEP_SECS"
58
59
0 commit comments