From 401cbc5c998ed65d8421cae8f2a0c39ca798a626 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 4 Sep 2015 20:21:49 -0400 Subject: [PATCH] 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. --- sys-apps/mlocate/files/mlocate.cron-r2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2