|
|
@@ -102,14 +102,15 @@ for infile in $FILES; do
|
|
|
|
|
|
# If the singular output error is "already exists" assume the error is related to filename encoding
|
|
|
# Suppress the error and touch the output file to prevent it from being deleted
|
|
|
- if [ -n "${ERR}" ] && \
|
|
|
- [ `echo "${ERR}" | wc -l` -eq 1 ] && \
|
|
|
- echo "${ERR}" | grep -q 'encode.pl: Output file exists: '; then
|
|
|
- OUTFILE="`echo "${ERR}" | \
|
|
|
- sed 's%encode.pl: Output file exists: %%' | \
|
|
|
- sed 's%. Skipping...%%'`"
|
|
|
- touch "${OUTFILE}"
|
|
|
- else
|
|
|
- echo "${ERR}" 1>&2
|
|
|
+ if [ -n "${ERR}" ]; then
|
|
|
+ if [ `echo "${ERR}" | wc -l` -eq 1 ] && \
|
|
|
+ echo "${ERR}" | grep -q 'encode.pl: Output file exists: '; then
|
|
|
+ OUTFILE="`echo "${ERR}" | \
|
|
|
+ sed 's%encode.pl: Output file exists: %%' | \
|
|
|
+ sed 's%. Skipping...%%'`"
|
|
|
+ touch "${OUTFILE}"
|
|
|
+ else
|
|
|
+ echo "${ERR}" 1>&2
|
|
|
+ fi
|
|
|
fi
|
|
|
done
|