X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/ad7871609881e73855d0b04da49b486cd93efca7..ed554bc5e4201344d7eaad78263566e79428759c:/usr/src/etc/weekly diff --git a/usr/src/etc/weekly b/usr/src/etc/weekly index a4e53634c5..75339389c5 100644 --- a/usr/src/etc/weekly +++ b/usr/src/etc/weekly @@ -1,6 +1,6 @@ #!/bin/sh - # -# @(#)weekly 8.1 (Berkeley) 6/9/93 +# @(#)weekly 8.2 (Berkeley) 1/2/94 # PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec @@ -29,10 +29,12 @@ then echo "$owner $file" echo $file >> $TDIR/$owner done | sed -e 's,SCCS/p.,,' | sort - for file in $TDIR/*; do - sed -e 's,SCCS/p.,,' $file | \ - Mail -s 'checked out files' `basename $file` - done + if test -n "`ls $TDIR`"; then + for file in $TDIR/*; do + sed -e 's,SCCS/p.,,' $file | \ + Mail -s 'checked out files' `basename $file` + done + fi rm -rf $TDIR fi