2022-06-04 20:25:45 +00:00
|
|
|
### ADB
|
|
|
|
# mnemonic [AD]b [P]ush [O]BB
|
|
|
|
# pushes obb directory via adb
|
|
|
|
|
|
|
|
obbdir=${1}
|
|
|
|
|
|
|
|
if [[ -z $obbdir ]]; then
|
2023-01-03 03:48:03 +00:00
|
|
|
obbdir=$(find . -maxdepth 5 -name '*.obb' ! -iname ".*" -exec dirname {} \; | sort -u | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:push]'")
|
2022-06-04 20:25:45 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $obbdir ]]; then
|
|
|
|
echo "Trying $obbdir"
|
2023-01-03 03:48:03 +00:00
|
|
|
adb push "$obbdir" /sdcard/Android/obb/
|
2022-06-04 20:25:45 +00:00
|
|
|
fi
|