diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ecompressdir | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/ecompressdir b/bin/ecompressdir index 08acd2cc7..540b47818 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -51,6 +51,9 @@ for dir in "$@" ; do vecho "${0##*/}: ${dir#${D}} does not exist!" continue fi + cd "${dir}" + actual_dir=${dir} + dir=. # use relative path to avoid 'Argument list too long' errors # not uncommon for packages to compress doc files themselves funk_up_dir "decompress" ".Z" "gunzip" @@ -63,7 +66,7 @@ for dir in "$@" ; do # now lets do our work [[ -z ${suffix} ]] && continue - vecho "${0##*/}: $(ecompress --bin) ${dir#${D}}" + vecho "${0##*/}: $(ecompress --bin) ${actual_dir#${D}}" funk_up_dir "compress" "${suffix}" "ecompress" done |