Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 297 Bytes
# p2p-adb
# https://github.com/kosborn/p2p-adb/
# @theKos
# kyle@kyleosborn.com
DIREXISTS=$(adb shell '[[ -d /sdcard/DCIM/Camera/ ]] && echo 1' | tr -d "\r")
if [ "$DIREXISTS" = "1" ]; then
DATAPATH='/sdcard/DCIM/Camera'
getData "$DATAPATH"
else
echo "Camera directory doesn't exist?"
fi