summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-09-04 20:21:49 -0400
committerMike Frysinger <vapier@gentoo.org>2015-09-04 20:21:55 -0400
commit401cbc5c998ed65d8421cae8f2a0c39ca798a626 (patch)
tree484b99edd52e99974b8d4484df38befed1f31397 /sys-apps/mlocate
parentsys-apps/texinfo: add a note wrt virtual/texi2dvi usage #559132 (diff)
downloadgentoo-401cbc5c998ed65d8421cae8f2a0c39ca798a626.tar.gz
gentoo-401cbc5c998ed65d8421cae8f2a0c39ca798a626.tar.bz2
gentoo-401cbc5c998ed65d8421cae8f2a0c39ca798a626.zip
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.
Diffstat (limited to 'sys-apps/mlocate')
-rw-r--r--sys-apps/mlocate/files/mlocate.cron-r22
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-apps/mlocate/files/mlocate.cron-r2 b/sys-apps/mlocate/files/mlocate.cron-r2
index 51cb504977e..cf42104a45a 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