diff options
Diffstat (limited to 'private_dot_local/bin/executable_zip2gzip')
| -rw-r--r-- | private_dot_local/bin/executable_zip2gzip | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/private_dot_local/bin/executable_zip2gzip b/private_dot_local/bin/executable_zip2gzip new file mode 100644 index 0000000..0be6b12 --- /dev/null +++ b/private_dot_local/bin/executable_zip2gzip @@ -0,0 +1,9 @@ +#!/bin/sh + +GZ=-9 +start="$(pwd)" +tmpdir="$(mktemp -d)" +trap "rm -rf $tmpdir" EXIT +unzip -q "$1" -d "$tmpdir" +cd "$tmpdir" +tar -czf "$start/${1%.*}.tgz" . |