From 03e8dc8c03aa8a9900269a93362a9b3777e4840e Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 9 Oct 2024 20:31:45 +0100 Subject: [PATCH] Add script to automatically import scan file from phone --- sevenkeys/pullscan | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 sevenkeys/pullscan diff --git a/sevenkeys/pullscan b/sevenkeys/pullscan new file mode 100755 index 0000000..10da19f --- /dev/null +++ b/sevenkeys/pullscan @@ -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