VirtualBox

Changeset 1542 in kBuild


Ignore:
Timestamp:
Apr 22, 2008 1:20:45 AM (17 years ago)
Author:
bird
Message:

Fixed script rc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/env.sh

    r1531 r1542  
    459459# The environment is in place, now take the requested action.
    460460#
     461MY_RC=0
    461462if test -n "${VAR_OPT}"; then
    462463    # Echo variable values or variable export statements.
     
    570571            fi
    571572            $SHELL -i
     573            MY_RC=$?
    572574        else
    573575            test -z "${QUIET_OPT}" && echo "$0: info: Executing command: $*" 1>&${ERR_REDIR}
    574576            $*
     577            MY_RC=$?
     578            test -z "${QUIET_OPT}" -a "$MY_RC" -ne 0 && echo "$0: info: rc=$MY_RC: $*" 1>&${ERR_REDIR}
    575579        fi
    576580    fi
    577581fi
    578 test -n "$DBG_OPT" && echo "dbg: finished" 1>&${DBG_REDIR}
    579 
     582test -n "$DBG_OPT" && echo "dbg: finished (rc=$MY_RC)" 1>&${DBG_REDIR}
     583exit $MY_RC
     584
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette