Updated script to accept arguments

master
Aadhavan Srinivasan 2 years ago
parent 0e83bbb076
commit 1ed5ea966c

@ -1,6 +1,14 @@
#!/bin/bash
VAL_TO_USE=1;
if [ $# -eq 0 ]
then
echo "No arguments supplied. Assuming default value of 1."
else
VAL_TO_USE=${1}
fi
sleep 1
for i in 1 2 3 4 5 6 7 8 9 10
for (( i = 1; i <= $VAL_TO_USE; i++ ))
do
sleep 1
xdotool key Print

Loading…
Cancel
Save