projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4c766b
)
sys-apps/mlocate: tweak cronjob syntax slightly #559568
author
Mike Frysinger
<vapier@gentoo.org>
Sat, 5 Sep 2015 00:21:49 +0000
(20:21 -0400)
committer
Mike 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
patch
|
blob
|
history
diff --git
a/sys-apps/mlocate/files/mlocate.cron-r2
b/sys-apps/mlocate/files/mlocate.cron-r2
index 51cb504977e2ce59d4ff0cc95422604bef4d25bd..cf42104a45a10d066b62b9a5b3620010e3a44e9f 100644
(file)
--- 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