From d7a31148939441834cf862e9f4c67ec7b81afa5e Mon Sep 17 00:00:00 2001 From: Prunebutt Date: Sun, 21 Sep 2025 22:39:47 +0200 Subject: [PATCH] cleanup code --- scanbuddy.bash | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/scanbuddy.bash b/scanbuddy.bash index efd16f5..6893419 100755 --- a/scanbuddy.bash +++ b/scanbuddy.bash @@ -10,7 +10,6 @@ duplex_source='Automatic Document Feeder(left aligned,Duplex)' color_mode='24bit Color[Fast]' bw_mode='Black & White' grayscale_mode='True Gray' - valid_resolutions=("100" "150" "200" "300" "400" "600" "1200") # default options for scanning @@ -18,11 +17,10 @@ sides=$simplex_source mode='c' resolution='300' + current_page=$(find "$PWD" -name "out*.pdf" | sort | tail -n 1); read -r current_pageno <<<"${current_page//[^0-9]/ }" - current_pageno=${current_pageno:-0} - next_out_file="out$((current_pageno+1)).pdf" scan() { @@ -80,17 +78,6 @@ scan() { case "$1" in scan) scan "${@:2}" - exit 0 - - if [ "$2" = "duplex" ]; then - true - fi - - # cat <