View Single Post
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#12
Originally Posted by JosefA View Post
The point is, look at the difference between that and your code. The point isn't "do you have bash on your N900". I don't either.
I already tried the [[ ]], and I can't run it if I leave #!/bin/bash.

Here :

Code:
Nokia-N900-02-8:/etc/network# vi detectUsb.test.sh
#!/bin/sh

my="abcd"

if [[ $my = *bc* ]]
then
        echo "Ok"
else
        echo "Not ok"
fi

~
~

Nokia-N900-02-8:/etc/network# ./detectUsb.test.sh
Not ok
Nokia-N900-02-8:/etc/network#
Still don't know what I am doing wrong,