shellcheck, better automated upgrades
[distro-setup] / btrfsmaint
index 22cd4c695e23e37d675e96ae1817740833a6294c..c410b7b3503359309ab6938f5c233f7193cd6a3e 100755 (executable)
@@ -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