summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2023-11-24 23:43:30 -0500
committerMitsuo Tokumori <[email protected]>2023-11-24 23:43:45 -0500
commit6778640f84cce092f425ad4ab9a1ec310a08f6d2 (patch)
treeb75a037385c87ba7434fb540887787f8d18cef17
parent18c144fea4878be121a7daf1e2a1b447f7100161 (diff)
downloaddotfiles-6778640f84cce092f425ad4ab9a1ec310a08f6d2.tar.gz
dotfiles-6778640f84cce092f425ad4ab9a1ec310a08f6d2.tar.bz2
dotfiles-6778640f84cce092f425ad4ab9a1ec310a08f6d2.zip
Small fix to scan_loop.sh
Use bash. Call the function.
-rwxr-xr-xlocal/bin/scan_loop.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/local/bin/scan_loop.sh b/local/bin/scan_loop.sh
index c0b6321..722e63d 100755
--- a/local/bin/scan_loop.sh
+++ b/local/bin/scan_loop.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# The scan loop is useful when Automatic Document Feeder (ADF) can't be used
@@ -25,8 +25,9 @@ flatbed_loop() {
hp-scan --mode=color --size=a4 --device=$scan_device_uri
echo "page " $((i + 1)) " done, you have 4 seconds to load next page"
sleep 4
- i=`expr $i + 1`
+ i=$((expr $i + 1))
done
# convert *.png output.pdf
}
+flatbed_loop