1 |
--- |
2 |
bin/ecompress | 1 + |
3 |
bin/ecompress-file | 9 +++------ |
4 |
2 files changed, 4 insertions(+), 6 deletions(-) |
5 |
|
6 |
diff --git a/bin/ecompress b/bin/ecompress |
7 |
index e4fdc3934..4a2c8a99a 100755 |
8 |
--- a/bin/ecompress |
9 |
+++ b/bin/ecompress |
10 |
@@ -53,6 +53,7 @@ while [[ $# -gt 0 ]] ; do |
11 |
# skip the compressed variants (bug #667072) |
12 |
case ${path} in |
13 |
*.Z|*.gz|*.bz2|*.lzma|*.xz) |
14 |
+ touch "${T}"/.ecompress_had_precompressed |
15 |
[[ -s ${path%.*} ]] && continue |
16 |
;; |
17 |
esac |
18 |
diff --git a/bin/ecompress-file b/bin/ecompress-file |
19 |
index 27695da1b..bc8fe5451 100755 |
20 |
--- a/bin/ecompress-file |
21 |
+++ b/bin/ecompress-file |
22 |
@@ -22,16 +22,13 @@ compress_file() { |
23 |
case ${x} in |
24 |
*.gz|*.Z) |
25 |
gunzip -f "${x}" || __helpers_die "gunzip failed" |
26 |
- x=${x%.*} |
27 |
- touch "${T}/.ecompress_had_precompressed";; |
28 |
+ x=${x%.*};; |
29 |
*.bz2) |
30 |
bunzip2 -f "${x}" || __helpers_die "bunzip2 failed" |
31 |
- x=${x%.bz2} |
32 |
- touch "${T}/.ecompress_had_precompressed";; |
33 |
+ x=${x%.bz2};; |
34 |
*.lzma|*.xz) |
35 |
unxz -f "${x}" || __helpers_die "unxz failed" |
36 |
- x=${x%.*} |
37 |
- touch "${T}/.ecompress_had_precompressed";; |
38 |
+ x=${x%.*};; |
39 |
esac |
40 |
|
41 |
filtered_args+=( "$x" ) |
42 |
-- |
43 |
2.19.0 |