From 6533b732469dd4a8014e9e3ffb29625947d387ed Mon Sep 17 00:00:00 2001 From: Phillip Lord Date: Sat, 22 Jun 2019 12:29:02 +0100 Subject: Support changing small sleep on command line --- robot/robot.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'robot/robot.sh') diff --git a/robot/robot.sh b/robot/robot.sh index c9a6169..8b7e9a3 100644 --- a/robot/robot.sh +++ b/robot/robot.sh @@ -7,7 +7,14 @@ window_id= ## This is the small sleep between key presses. Change for debugging ## when you are not sure what is happening -small_sleep=0.1 +echo arg is $1 +if [ -z $1 ] +then + small_sleep=0.1 +else + small_sleep=$1 +fi + big_sleep=1 emacs_process_pid= -- cgit v1.2.3