I have this script that runs on my linux machine
#!/bin/sh c=1 if [ $c == 1 ] then echo c is 1 else echo c is 0 fi
But when I use it in android as follows:
#!/system/bin/sh c=1 if [ $c == 1 ] then echo c is 1 else echo c is 0 fi
An error message appears:
[: not found
EDIT
Is there any other logic to check the value of $c , is it 1 or 0?
Does the Android shell have a problem with [] if there is any other way to check the value of c?
source share