Why doesn't the following work? All I'm trying to do is execute a adb command and, if the response contains a certain string, then doing something about it.
I keep getting an error [; too many arguments
VARIABLE=$(adb devices);
if [ "$VARIABLE" == *list of attached* ]; then
echo "adb command worked";
fi
Any ideas?
adb devicesreturns wordsList of devices attached, notlist of attached. So yourifstatement may always return false.