Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 55fb14282bbc62d8322f096ea332a223a8d6a8f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

max=10
count=1
echo -e "\n\tScript that runs for $max minutes: Loop $count of $max\n"
sleep 1m
count=$((count + 1)
if [[ $count >= $max ]]
then 
  exit 0
fi

Back to the top