5
if [ -n "$TARGET_PREFIX" ] ; then
6
echo "RUNNING FROM HOST"
8
echo "RUNNING ON TARGET"
9
TARGET_PREFIX="/bin/sh -c"
12
#when it comes from adb we get a \r\n that should be removed
13
dir=$($TARGET_PREFIX "cd /tmp; pwd" | head -n1 | tr -d '\r\n')
14
if [ $dir != "/tmp" ] ; then
15
echo "failed to change directory"