Lines Matching refs:dir
9 dir=$(get-dir $1)
12 if [ -f "$dir/$CONTACTS_DB" ]; then
13 rm "$dir/$CONTACTS_DB"
15 if [ -f "$dir/$CONTACTS_DB-wal" ]; then
16 rm "$dir/$CONTACTS_DB-wal"
18 adb pull /data/user/0/$package/databases/$CONTACTS_DB $dir/$CONTACTS_DB
19 adb pull /data/user/0/$package/databases/$CONTACTS_DB-wal $dir/$CONTACTS_DB-wal
22 function get-dir (){
25 dir=$(pwd)
27 dir=$1
29 echo "$dir"
33 dir="$(get-dir $1)"
34 contacts-pull $dir
35 rlwrap sqlite3 $dir/$CONTACTS_DB
39 dir="$(get-dir $1)"
40 contacts-pull $dir
41 sqlitebrowser $dir/$CONTACTS_DB
48 dir=$(pwd)
50 dir=$1
54 adb push $dir/$CONTACTS_DB /data/user/0/$package/databases/$CONTACTS_DB
55 adb push $dir/$CONTACTS_DB-wal /data/user/0/$package/databases/$CONTACTS_DB-wal