Rename exit to status in log

parent 6551fd08
......@@ -6,8 +6,8 @@
$MKDIR $1 &&
((. $2 ||
printf "$?\n" > $1/exit) | tee $1/out.log) 3>&1 1>&2 2>&3 | tee $1/err.log &&
printf "$?\n" > $1/status) | tee $1/out.log) 3>&1 1>&2 2>&3 | tee $1/err.log &&
[ -e $1/exit ] &&
exit $(cat $1/exit) ||
[ -e $1/status ] &&
exit $(cat $1/status) ||
exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment