From 5b24b5957668278f93c1e78f16e3982e92d3e516 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 25 Mar 2008 09:48:34 +0100 Subject: Fixing md5sum.txt creation to not fail on filenames with whitespaces, thanks to Bas Wijnen (Closes: #469085). --- helpers/lh_source_md5sum | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helpers/lh_source_md5sum') diff --git a/helpers/lh_source_md5sum b/helpers/lh_source_md5sum index 00cbba445..ef9c0632b 100755 --- a/helpers/lh_source_md5sum +++ b/helpers/lh_source_md5sum @@ -65,7 +65,7 @@ fi # Calculating md5sums cd source -find . -type f | sort | xargs md5sum > ../md5sum.txt +find . -type f -print0 | xargs -0 md5sum > ../md5sum.txt cat > md5sum.txt << EOF This file contains the list of md5 checksums of all files on this medium. @@ -76,7 +76,7 @@ or, manually with: 'md5sum -c md5sum.txt'. EOF -cat ../md5sum.txt >> md5sum.txt +sort ../md5sum.txt >> md5sum.txt rm -f ../md5sum.txt cd "${OLDPWD}" -- cgit v1.2.3