Hi!
I am trying to use the simple fuinction below. But i get error sayin unary oprator expected and the output is always one
. Can any1 help me correct it.
#!/bin/bash
checkit ()
{
if [ $1 = "none" ]
then
echo "none"
else
echo "one"
fi
}
checkit