Changeset 2770

Show
Ignore:
Timestamp:
08/24/08 22:09:08 (3 months ago)
Author:
dhozac
Message:

If $3 is set, the run file is expected to be cleaned up if the context does
not exist. Fix the previous change to handle this correctly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/scripts/functions

    r2764 r2770  
    602602    eval "$2"=\$_gvs_ctx 
    603603 
    604     test "$1" = "$($_VUNAME -g --xid "$_gvs_ctx" context)" || return 1 
    605  
    606     test -n "$3"     || return 0 
    607     local _gvs_tmp 
    608     _getProcNumberCount "$_gvs_ctx" _gvs_tmp 
    609     eval "$3"=\$_gvs_tmp 
     604    if test "$1" = "$($_VUNAME -g --xid "$_gvs_ctx" context)"; then 
     605        test -n "$3" || return 0 
     606        local _gvs_tmp 
     607        _getProcNumberCount "$_gvs_ctx" _gvs_tmp 
     608        eval "$3"=\$_gvs_tmp 
     609    else 
     610        test -n "$3" || return 1 
     611        eval "$3"=0 
     612        _gvs_tmp=0 
     613    fi 
    610614 
    611615    if test "$_gvs_tmp" = 0; then