Revision 8858
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
149 | 149 |
|
150 | 150 |
alias zip="echo_run zip" |
151 | 151 |
alias unzip="echo_run unzip" |
152 |
alias zip_newer="zip -u" |
|
153 |
alias unzip_newer="unzip -u -o" # -o is safe b/c -u only extracts newer files |
|
152 |
set_inv force |
|
153 |
alias zip_newer="zip${no_force:+ -u}" |
|
154 |
alias unzip_newer="unzip${no_force:+ -u} -o" |
|
155 |
# -o is safe because -u only extracts newer files |
|
154 | 156 |
|
155 | 157 |
#### databases |
156 | 158 |
|
Also available in: Unified diff
lib/util.sh: zip/unzip_newer: support extracting/updating the file even if it has an older mtime by setting $force, using new set_inv to get a var to use to determine whether to include the -u flag