hey guys, I'm new to scripting and I have a trouble with if statement syntax.
The code is:
#there is a diff command here, and it does what i want but
#i wanna see 1 if the exit value of diff is 0, and otherwise i wanna see 0.
#the problem is here: (syntax error near unexpected token "then")
so what could be the problem?