Bash scripting know the result of a command.
- by Fork
Hi,
I am writing a bash script to run an integration test of a tool I am writing.
Basically I run the application with a set of inputs and compare the results with expected values using the diff command line tool.
It's working, but I would like to enhance it by knowing the result of the diff command and print "SUCCESS" or "FAIL" depending on the result of the diff.
How can I do it?