Revision 9192
Added by Aaron Marcuse-Kubitza over 11 years ago
archives.sh | ||
---|---|---|
7 | 7 |
|
8 | 8 |
zip() |
9 | 9 |
{ |
10 |
stdout2stderr=1 try limit_stderr_cmd self "$@"
|
|
10 |
stdout2stderr=1 limit_stderr=1 try self "$@"
|
|
11 | 11 |
ignore 12 # "zip has nothing to do" (`man zip`) |
12 | 12 |
end_try |
13 | 13 |
} |
14 | 14 |
|
15 |
unzip() { limit_stdout_cmd self "$@"; }
|
|
15 |
unzip() { stdout2stderr=1 limit_stderr=1 self "$@"; }
|
|
16 | 16 |
|
17 | 17 |
set_inv force |
18 | 18 |
alias zip_newer='zip ${no_force:+-u }' |
Also available in: Unified diff
lib/sh/util.sh: merged limit_stderr_cmd/limit_stdout_cmd into command(), using flag vars to control what limiting actions it needs to perform. in command invocations, this involves setting the appropriate flag vars instead of using a limit_std*_cmd alias.