summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ecompressdir2
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