X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrfsmaint;h=c410b7b3503359309ab6938f5c233f7193cd6a3e;hb=7d5e9e87105fafa2243603f958c8b41cdaa7f0ad;hp=22cd4c695e23e37d675e96ae1817740833a6294c;hpb=eb9b839bb5a91c60cc4f6eb9d7e38ffbf73f0e90;p=distro-setup 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