Hi,

>> +if [ $? -ne 0 ]; then
>> +    exit_code="$?"

In this case, the second $? will always be 0, because that is not the error 
code from if
statement.

Cai Qian

>> +    exit $exit_code
>> +fi
>>  exit $exit_code



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to