Dont use -q to grep we pipe to /dev/null anyway all we
care is the return status of grep
(From OE-Core rev:
9c575b5f37ee53eaf26bfdc468d4cbb661db703f)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
exit 1;
fi
-echo "\$target" | grep −q "@" >& /dev/null
+echo "\$target" | grep "@" >& /dev/null
if [ "x\$?" = "x0" ]
then
- user=echo \$target | cut -d '@' -f 1
- target=echo \$target | cut -d '@' -f 2
+ user=\$(echo \$target | cut -d '@' -f 1)
+ target=\$(echo \$target | cut -d '@' -f 2)
else
user=\$USER
fi