mail_wrap_script.sh: fix command err code retrieval
This commit is contained in:
parent
1d6c448599
commit
a7ca83d1e8
@ -10,7 +10,7 @@ touch /tmp/$FILE_ID.log
|
||||
chmod a-rwx,u+r /tmp/$FILE_ID.log
|
||||
|
||||
$SCRIPT "$@" 2>&1 | tee /tmp/$FILE_ID.log
|
||||
ERR=$?
|
||||
ERR=${PIPESTATUS[0]}
|
||||
|
||||
OUTPUT=$(cat /tmp/$FILE_ID.log)
|
||||
rm /tmp/$FILE_ID.log
|
||||
|
Loading…
Reference in New Issue
Block a user