Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #run in a bash shell to pull upgrade logs from dji mavic drone
- HOST_DIR=C:/adb/dji/logs/
- DEVICE_DIR=/data/dji/log/
- EXTENSION=".log"
- DATA="upgrade*"
- for file in $(adb shell ls $DEVICE_DIR | grep $EXTENSION'$')
- do
- file=$(echo -e $file | tr -d "\r\n"); # EOL fix
- adb pull $DEVICE_DIR/$file $HOST_DIR/$file;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement