OK, why doesn't the code below work?
if [ -n $2 ] && [ $2 = "clean" ]
then
......
fi
I want to check to see if a second command line param has been specified and if it equals clean...
When I run the script w/o the second param I get...
if [ -n $2 ] && [ $2 = "clean" ]
then
......
fi
I want to check to see if a second command line param has been specified and if it equals clean...
When I run the script w/o the second param I get...
/bin/r-gas-gcc.sh: line 20: [: =: unary operator expected
