diff options
Diffstat (limited to 'usr.sbin/periodic/periodic.sh')
-rw-r--r-- | usr.sbin/periodic/periodic.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/periodic/periodic.sh b/usr.sbin/periodic/periodic.sh index 06f14bb..cb849b5 100644 --- a/usr.sbin/periodic/periodic.sh +++ b/usr.sbin/periodic/periodic.sh @@ -78,9 +78,10 @@ do output=TRUE processed=$(($processed + 1)) $file </dev/null >$tmp_output 2>&1 + rc=$? if [ -s $tmp_output ] then - case $? in + case $rc in 0) [ $success = NO ] && output=FALSE;; 1) [ $info = NO ] && output=FALSE;; 2) [ $badconfig = NO ] && output=FALSE;; |