[: too many arguments
If you get the error “[: too many arguments" in your bash script - check that you have wrapped your variables with quotes.
if [ $X = "y"]
will cause this error if $X is a string with a space in it. Change to :
if [ "$X" = "y"]
If you get the error “[: too many arguments" in your bash script - check that you have wrapped your variables with quotes.
if [ $X = "y"]
will cause this error if $X is a string with a space in it. Change to :
if [ "$X" = "y"]