Add script to automatically import scan file from phone

This commit is contained in:
The Magician 2024-10-09 20:31:45 +01:00
parent c1f581f312
commit 03e8dc8c03
1 changed files with 9 additions and 0 deletions

9
sevenkeys/pullscan Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -e
filename="$(adb shell 'find /sdcard/Download/ | grep Temporary')"
adb pull "$filename" /home/viciouscirce/dox/sevenkeys_imports/import.csv
adb shell "rm $filename"
./sevenkeys --profile=production import import.csv
rm /home/viciouscirce/dox/sevenkeys_imports/import.csv