about summary refs log tree commit diff stats
path: root/home-manager/packages/scripts/apps/con2pdf
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-05-18 12:27:58 +0200
committerSoispha <soispha@vhack.eu>2023-05-18 12:27:58 +0200
commitb8b30145f9d4cb50195a2ab8a95ab2a4a006454e (patch)
tree59364aba235fb61ff4b070da55ca227c2ffef7f3 /home-manager/packages/scripts/apps/con2pdf
parentFix(hm/pkgs/scr/con2pdf): Remove useless awk call (diff)
downloadnixos-config-b8b30145f9d4cb50195a2ab8a95ab2a4a006454e.tar.gz
nixos-config-b8b30145f9d4cb50195a2ab8a95ab2a4a006454e.zip
Fix(hm/pkgs/scr/con2pdf): Add status output
Diffstat (limited to 'home-manager/packages/scripts/apps/con2pdf')
-rwxr-xr-xhome-manager/packages/scripts/apps/con2pdf3
1 files changed, 3 insertions, 0 deletions
diff --git a/home-manager/packages/scripts/apps/con2pdf b/home-manager/packages/scripts/apps/con2pdf
index 2fb59d2d..334749ab 100755
--- a/home-manager/packages/scripts/apps/con2pdf
+++ b/home-manager/packages/scripts/apps/con2pdf
@@ -53,6 +53,7 @@ scan() {
     tiff_temp_path="$(mktmp -d)";
     cd "$tiff_temp_path" || die "Bug"
 
+    msg "Started scanning...";
     for i in $(seq "$number_of_pages");do
         do_until_success \
             "scanimage --format=tiff --progress --source='$method' --device='$device' --batch=%d.tif --batch-increment='$number_of_pages' --batch-start='$i'" \
@@ -65,10 +66,12 @@ scan() {
         fi
     done
 
+    msg "Creating output directory...";
     mkdir "$output_directory";
     cd "$output_directory" || die "Bug"
 
     counter=0;
+    msg "Converting images to pdfs...";
     while read -r scanned_image_a;do
         if [ "$number_of_pages" -ne 1 ];then
             scanned_image_b_set=false;