Has anybody tried bash scripting on android? I tried to write a simple script on Android's bash shell through adb. I tried the following script which works for me:
#sh1
x="hello"
echo "$x"
But when I do:
#sh1
x="hello"
if [ -n "$X" ]; then
echo "hi"
fi
The error says [ -n not found
!
Why do I get this error and is there a work around?