Use portable sh syntax rather than bash syntax. Thanks to drizzt. (trunk r6428:6429)
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Apr 2007 10:50:30 +0000 (10:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Apr 2007 10:50:30 +0000 (10:50 -0000)
svn path=/main/branches/2.1.2/; revision=6430

bin/ecompressdir

index 540b4781806a7ef286f11d15d9a80aa3a0736708..d43861dbc1567b6b93417d68c968a30c8a993264 100755 (executable)
@@ -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