X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=btrfsmaint;h=c410b7b3503359309ab6938f5c233f7193cd6a3e;hp=22cd4c695e23e37d675e96ae1817740833a6294c;hb=343a048be4b32d18540c6531048d2b9a006774ae;hpb=50e3ebaf4941651899a3b52b5245052c3f4ed725 diff --git a/btrfsmaint b/btrfsmaint index 22cd4c6..c410b7b 100755 --- a/btrfsmaint +++ b/btrfsmaint @@ -84,7 +84,7 @@ for x in $($fnd --output "SOURCE" --nofsroot | sort -u); do # the wiki recommends 30 days or so, but # it makes the comp lag like shit for a day, # so I'm going with 90 days. - if (( $date > `date +%s` - 60*60*24*30 )); then + if (( date > $(date +%s) - 60*60*24*30 )); then echo "cron: skiping scrub of $mnt" continue fi