From aa190c8e82fc36054a26cffb6e32c1c47516b310 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Wed, 12 Feb 2014 01:41:32 +0100 Subject: jot is 1-based, dont reference non-existing file --- src/makecolumns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/makecolumns.sh') diff --git a/src/makecolumns.sh b/src/makecolumns.sh index 5d2d90b..d70f564 100755 --- a/src/makecolumns.sh +++ b/src/makecolumns.sh @@ -204,7 +204,7 @@ handle_new_format() { printf "done.\n" printf "Splitting decompressed chunks into their columns (11 total) ... 1, " - jot -w "file_%05X" - 0 $rows 11 | xargs cat | xxd -ps -c1 > column_0 + jot -w "file_%05X" - 0 $(( rows - 1 )) 11 | xargs cat | xxd -ps -c1 > column_0 for col in 1 2 3 4 5 6 7 8 9 10; do printf "%d, " $(( col + 1 )) -- cgit v1.2.3