summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-04-21 10:50:30 +0000
committerZac Medico <zmedico@gentoo.org>2007-04-21 10:50:30 +0000
commit1326c0b61a60864724baa4d841a89f3f8e20b676 (patch)
treeb5262244bb3d3efcbda47cb3782adc285d8a502d /bin
parent88a4842f69c28ea83e72262a0ce5a66d0a72c171 (diff)
downloadportage-1326c0b61a60864724baa4d841a89f3f8e20b676.tar.gz
portage-1326c0b61a60864724baa4d841a89f3f8e20b676.tar.bz2
portage-1326c0b61a60864724baa4d841a89f3f8e20b676.zip
Use portable sh syntax rather than bash syntax. Thanks to drizzt. (trunk r6428:6429)
svn path=/main/branches/2.1.2/; revision=6430
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ecompressdir2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ecompressdir b/bin/ecompressdir
index 540b47818..d43861dbc 100755
--- a/bin/ecompressdir
+++ b/bin/ecompressdir
@@ -62,7 +62,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