From 05fd93a77e71029a57616e56f7f1c26ef72abbdc Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 30 Dec 2023 19:07:35 +0100 Subject: fix(hm/pkgs/con2pdf): Correctly sort and clear inputs --- hm/soispha/pkgs/scripts/apps/con2pdf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hm/soispha/pkgs/scripts/apps/con2pdf b/hm/soispha/pkgs/scripts/apps/con2pdf index f0942a5c..56ed613f 100644 --- a/hm/soispha/pkgs/scripts/apps/con2pdf +++ b/hm/soispha/pkgs/scripts/apps/con2pdf @@ -92,9 +92,9 @@ process_images_adf() { counter=0; convert_images_flatbed "$image_cache" "${name}_$pdf_counter" "$output_directory" : $((pdf_counter += 1)) - echo "" > "$image_cache" + printf "" > "$image_cache" fi - done < "$(tmp_pipe fd . "$tiff_temp_path" "|" sort -n)" + done < "$(tmp_pipe fd . "$tiff_temp_path" "|" sort -V)" } scan_flatbed() { @@ -124,9 +124,9 @@ process_images_flatbed() { if [ "$counter" = "$number_of_pages" ]; then counter=0; convert_images_flatbed "$image_cache" "$name" "$output_directory" - echo "" > "$image_cache" + printf "" > "$image_cache" fi - done < "$(tmp_pipe fd . "$tiff_temp_path" "|" sort -n)" + done < "$(tmp_pipe fd . "$tiff_temp_path" "|" sort -V)" } convert_images_flatbed() { image_cache="$1"; -- cgit 1.4.1