Revision 8974
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
256 | 256 |
unzip () { stdout2stderr=1 self "$@"; } |
257 | 257 |
|
258 | 258 |
set_inv force |
259 |
alias zip_newer="zip${no_force:+ -u}"
|
|
260 |
alias unzip_newer="unzip${no_force:+ -u} -o"
|
|
259 |
alias zip_newer='zip ${no_force:+-u }'
|
|
260 |
alias unzip_newer='unzip ${no_force:+-u }-o'
|
|
261 | 261 |
# -o is safe because -u only extracts newer files |
262 | 262 |
|
263 | 263 |
#### URLs |
Also available in: Unified diff
lib/util.sh: zip_newer/unzip_newer: evaluate $no_force at alias expansion time rather than at alias compile time, so that the $no_force can be overridden in the context the alias is used in