Revision 9669
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
659 | 659 |
if test "$if_not_exists"; then require_not_exists "$stdout" || return 0; fi |
660 | 660 |
|
661 | 661 |
local redirs=("${redirs[@]}" ">$stdout") |
662 |
"$@" || { save_e; rm "$stdout"; rethrow; } |
|
662 |
"$@" || { save_e; unset redirs; rm "$stdout"; rethrow; }
|
|
663 | 663 |
} |
664 | 664 |
alias to_file='"to_file" ' # last space alias-expands next word |
665 | 665 |
|
Also available in: Unified diff
lib/sh/util.sh: to_file(): exc handler that rm's file: unset redirs so it isn't used in the rm cmd