Directories aren't executable.

Submitted by:	Dennis Glatting <dennis.glatting@software-munitions.com>
		(misc/9147)
This commit is contained in:
Tim Vanderhoek 1998-12-29 22:48:54 +00:00
parent 956e99c923
commit 9300774d7e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42152

View File

@ -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