Improved Plan B scripts.

This commit is contained in:
Christian P. MOMON 2023-03-18 15:12:51 +01:00
parent d488bec7b1
commit b99e3394f0
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ convert_duration()
if [[ $input =~ ([0-9\.]+)\ seconds ]]; then
seconds=${BASH_REMATCH[1]}
seconds=$(roundn $seconds)
if [ $seconds -eq "60" ]; then
seconds=0
minutes=$(($minutes+1))
fi
else
seconds=0
fi