Directories aren't executable.

Submitted by:	Dennis Glatting <dennis.glatting@software-munitions.com>
		(misc/9147)
This commit is contained in:
hoek 1998-12-29 22:48:54 +00:00
parent 23a36af483
commit 78c2e3578a

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