diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-04-21 10:49:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-04-21 10:49:56 +0000 |
commit | c7c1ba8a8cce1751ea08196859d87fd084828fa8 (patch) | |
tree | 250b309b6dbf5bb9524196d9068622d27ca4eb92 | |
parent | bb0ed0ebfb9785c4b158152a53e70f4d0b62d768 (diff) | |
download | portage-c7c1ba8a8cce1751ea08196859d87fd084828fa8.tar.gz portage-c7c1ba8a8cce1751ea08196859d87fd084828fa8.tar.bz2 portage-c7c1ba8a8cce1751ea08196859d87fd084828fa8.zip |
Use portable sh syntax rather than bash syntax. Thanks to drizzt.
svn path=/main/trunk/; revision=6429
-rwxr-xr-x | bin/ecompressdir | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ecompressdir b/bin/ecompressdir index 590fae75b..4db01697a 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -121,7 +121,7 @@ for dir in "$@" ; do # forcibly break all hard links as some compressors whine about it find "${dir}" -type f -links +1 -exec env file="{}" sh -c \ - 'cp -p "${file}"{,.ecompress.break} ; mv -f "${file}"{.ecompress.break,}' \; + 'cp -p "${file}" "${file}.ecompress.break" ; mv -f "${file}.ecompress.break" "${file}"' \; # now lets do our work [[ -z ${suffix} ]] && continue |