You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I submitted a pull request (#4 ) for this, but there were problems with it and i dont have time in my life right now to fix them, so im making these issues.
This is about the first half of the pull request
I would like to be able to change the delay between tests using an environment variable (from the docker run command)
cap5min.sh
if [[ $delay =~ '^[0-9]+$']] ; then
delay=5
fi
sec=60
time=$((sec*delay))# $delay is in minutes, $time is in seconds
while :
do
echo "Running test...."
./capture.sh
echo "Waiting $delay minutes..."
sleep $time
done
as with my other issue (#5 ), the problem is the if statement at the top.
this if statement needs to return true if $delay is a number 1 or more
(need to first check that it is a number then check if it is 1 or more)
if it is not a number above or equal to 1, we set it to 5.
then multiply it by 60 to convert to seconds for the sleep command
(but the echo command uses the minutes value)
The text was updated successfully, but these errors were encountered:
Hi
I submitted a pull request (#4 ) for this, but there were problems with it and i dont have time in my life right now to fix them, so im making these issues.
This is about the first half of the pull request
I would like to be able to change the delay between tests using an environment variable (from the docker run command)
cap5min.sh
as with my other issue (#5 ), the problem is the if statement at the top.
this if statement needs to return true if
$delay
is a number1
or more(need to first check that it is a number then check if it is
1
or more)if it is not a number above or equal to 1, we set it to 5.
then multiply it by 60 to convert to seconds for the sleep command
(but the echo command uses the minutes value)
The text was updated successfully, but these errors were encountered: