From: Zac Medico Date: Sat, 21 Apr 2007 10:49:56 +0000 (-0000) Subject: Use portable sh syntax rather than bash syntax. Thanks to drizzt. X-Git-Tag: v2.2_pre1~1476 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c7c1ba8a8cce1751ea08196859d87fd084828fa8;p=portage.git Use portable sh syntax rather than bash syntax. Thanks to drizzt. svn path=/main/trunk/; revision=6429 --- 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