diff options
author | brian <brian@FreeBSD.org> | 2000-09-19 21:46:54 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-09-19 21:46:54 +0000 |
commit | 849996ccf50805f3e79c6e80d967540b5db018f3 (patch) | |
tree | 2ef02e757c3931745c5ff8a9130cab6d8efcf994 | |
parent | c822295bff294c1644efc6224d5ba671b067ce03 (diff) | |
download | FreeBSD-src-849996ccf50805f3e79c6e80d967540b5db018f3.zip FreeBSD-src-849996ccf50805f3e79c6e80d967540b5db018f3.tar.gz |
Don't clobber $? before using it.
Submitted by: James Barkley <jbarkley@wgate.com>
-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;; |