Updated script to accept arguments
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user