X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrfsmaint;h=6c7dbb1f6788119cafa9cac1dc2cae559cd2c07b;hb=b18dade73dedfe69aa741f8417947d83c4208f2d;hp=bcad450bad786b99cf372a9f20142f98d923573c;hpb=2b981100a8b45f117d6f5c165404937f3c917e8f;p=distro-setup diff --git a/btrfsmaint b/btrfsmaint index bcad450..6c7dbb1 100755 --- a/btrfsmaint +++ b/btrfsmaint @@ -140,12 +140,15 @@ main() { done } -if $check; then - # this is to prevent systemd from filling up the journal - for (( runcount=0; runcount < 90; runcount++ )); do +loop-main() { + while true; do main sleep 60 done +} + +if $check; then + loop-main else main fi