diff options
author | hoek <hoek@FreeBSD.org> | 1998-12-29 22:48:54 +0000 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 1998-12-29 22:48:54 +0000 |
commit | a5b622c82ef7e58c9e2ed0f928bc6fee70115911 (patch) | |
tree | 11f8ce8bbc8da1fad0a30013504534d14bb70d0f /usr.sbin/periodic | |
parent | 03de2de9769b22b5b581102f824e504cc18260ba (diff) | |
download | FreeBSD-src-a5b622c82ef7e58c9e2ed0f928bc6fee70115911.zip FreeBSD-src-a5b622c82ef7e58c9e2ed0f928bc6fee70115911.tar.gz |
Directories aren't executable.
Submitted by: Dennis Glatting <dennis.glatting@software-munitions.com>
(misc/9147)
Diffstat (limited to 'usr.sbin/periodic')
-rw-r--r-- | usr.sbin/periodic/periodic.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |