From a5b622c82ef7e58c9e2ed0f928bc6fee70115911 Mon Sep 17 00:00:00 2001 From: hoek Date: Tue, 29 Dec 1998 22:48:54 +0000 Subject: Directories aren't executable. Submitted by: Dennis Glatting (misc/9147) --- usr.sbin/periodic/periodic.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/periodic') diff --git a/usr.sbin/periodic/periodic.sh b/usr.sbin/periodic/periodic.sh index 593d6c5..88e6ec3 100644 --- a/usr.sbin/periodic/periodic.sh +++ b/usr.sbin/periodic/periodic.sh @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: periodic.sh,v 1.4 1997/08/16 17:08:35 pst Exp $ +# $Id: periodic.sh,v 1.5 1997/08/19 16:49:35 pst Exp $ # # Run nightly periodic scripts # @@ -57,7 +57,7 @@ echo "Subject: $host $run run output" for dir in $dirlist ; do for file in $dir/* ; do - if [ -x $file ] ; then + if [ -x $file -a ! -d $file ] ; then $file fi done -- cgit v1.1