Don't clobber $? before using it.
Submitted by: James Barkley <jbarkley@wgate.com>
This commit is contained in:
parent
e653127edf
commit
8a7f44a640
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66083
@ -78,9 +78,10 @@ do
|
|||||||
output=TRUE
|
output=TRUE
|
||||||
processed=$(($processed + 1))
|
processed=$(($processed + 1))
|
||||||
$file </dev/null >$tmp_output 2>&1
|
$file </dev/null >$tmp_output 2>&1
|
||||||
|
rc=$?
|
||||||
if [ -s $tmp_output ]
|
if [ -s $tmp_output ]
|
||||||
then
|
then
|
||||||
case $? in
|
case $rc in
|
||||||
0) [ $success = NO ] && output=FALSE;;
|
0) [ $success = NO ] && output=FALSE;;
|
||||||
1) [ $info = NO ] && output=FALSE;;
|
1) [ $info = NO ] && output=FALSE;;
|
||||||
2) [ $badconfig = NO ] && output=FALSE;;
|
2) [ $badconfig = NO ] && output=FALSE;;
|
||||||
|
Loading…
Reference in New Issue
Block a user