Improved Plan B scripts.
This commit is contained in:
parent
d488bec7b1
commit
b99e3394f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue