From: Mike Frysinger Date: Sat, 5 Sep 2015 00:21:49 +0000 (-0400) Subject: sys-apps/mlocate: tweak cronjob syntax slightly #559568 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=401cbc5c998ed65d8421cae8f2a0c39ca798a626;p=gentoo.git sys-apps/mlocate: tweak cronjob syntax slightly #559568 These two forms are the same, but hopefully people don't get confused by the explicit filename passing to awk. --- diff --git a/sys-apps/mlocate/files/mlocate.cron-r2 b/sys-apps/mlocate/files/mlocate.cron-r2 index 51cb504977e2..cf42104a45a1 100644 --- a/sys-apps/mlocate/files/mlocate.cron-r2 +++ b/sys-apps/mlocate/files/mlocate.cron-r2 @@ -28,7 +28,7 @@ fi # check the config file NODEVS="" if [ ! -f /etc/updatedb.conf ]; then - NODEVS=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" { print $2 }') + NODEVS=$(awk '$1 == "nodev" && $2 != "rootfs" { print $2 }' /proc/filesystems) fi # alter the priority of the updatedb process