Browse Source

spacing nit, and a bit more randomness for mktemp

millert@ ok
OPENBSD_3_4
avsm 21 years ago
parent
commit
707c834a5a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/weekly

+ 3
- 3
src/etc/weekly View File

@ -1,12 +1,12 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: weekly,v 1.13 2003/04/08 20:42:42 millert Exp $
# $OpenBSD: weekly,v 1.14 2003/06/30 22:04:57 avsm Exp $
# #
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
export PATH export PATH
if [ -f /etc/weekly.local ];then
if [ -f /etc/weekly.local ]; then
echo "" echo ""
echo "Running weekly.local:" echo "Running weekly.local:"
. /etc/weekly.local . /etc/weekly.local
@ -14,7 +14,7 @@ fi
echo "" echo ""
if [ -f /var/db/locate.database ]; then if [ -f /var/db/locate.database ]; then
TMP=`mktemp /var/db/locate.database.XXXXXX`
TMP=`mktemp /var/db/locate.database.XXXXXXXXXX`
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
trap 'rm -f $TMP' 0 1 15 trap 'rm -f $TMP' 0 1 15
echo "Rebuilding locate database:" echo "Rebuilding locate database:"


Loading…
Cancel
Save