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