sys-apps/mlocate: tweak cronjob syntax slightly #559568
authorMike Frysinger <vapier@gentoo.org>
Sat, 5 Sep 2015 00:21:49 +0000 (20:21 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 5 Sep 2015 00:21:55 +0000 (20:21 -0400)
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

index 51cb504977e2ce59d4ff0cc95422604bef4d25bd..cf42104a45a10d066b62b9a5b3620010e3a44e9f 100644 (file)
@@ -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