From c7c1ba8a8cce1751ea08196859d87fd084828fa8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 21 Apr 2007 10:49:56 +0000 Subject: Use portable sh syntax rather than bash syntax. Thanks to drizzt. svn path=/main/trunk/; revision=6429 --- bin/ecompressdir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/ecompressdir') 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 -- cgit v1.2.3-1-g7c22