From 67b69cd38f0f15078bf832e91f7e4196649ffcfe Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 13 Jul 2020 23:07:57 -0400 Subject: Version sort on find output --- tests/test_split.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_split.sh b/tests/test_split.sh index 45d9abd..c049d18 100644 --- a/tests/test_split.sh +++ b/tests/test_split.sh @@ -8,8 +8,10 @@ test_splitfits_data1() { return 1 fi - find . -regex '.*\.part_[0-9]+' | xargs -I'{}' cat '{}' >> streamed.fits - if ! diff ${datafile} streamed.fits; then + files=$(find . -regex '.*\.part_[0-9]+' | sort -V) + cat $files > streamed.fits + + if ! diff -q ${datafile} streamed.fits; then return 1 fi -- cgit