Added -r flag to read so that filenames with \ will be read correctly

This commit is contained in:
Andy Bohne 2013-04-08 10:42:53 -04:00
parent 8e83e57a29
commit 03650cc0ca

View file

@ -112,7 +112,7 @@ else
fi
# find all the files in the fragments directory, sort them numerically and concat to fragments.concat in the working dir
find fragments/ -type f -follow | sort ${SORTARG} | while read fragfile; do
find fragments/ -type f -follow | sort ${SORTARG} | while read -r fragfile; do
cat "$fragfile" >> "fragments.concat"
done