I want to check if a certain directory (e.g.
/data/textdata/) exists on the AVD using
I'm following prolink007's answer on SO, except this line:
DIR_RESULT=$(adb shell ls /data/ | tr -d '\015'|grep '^textdata$')
but it goes always into the
then branch if the directory exist or not. I've also looked for the
adb shell manual without results.