ams7503
asked on
checking $? value
I have written a build script which creates a bin directory and compiles java code.
I call this build.sh in another script,dailybuild.sh ,I would like to test that the script ran correctly.
For this I used $?, but this value is turning out to be 1 instead of 0 even though the build.sh is correctly running.?Basically what I want to test is that the contents of build.sh ran properly-ie the code was compiled properly.
Is there a way to test that it ran correctly?
Thanks
I call this build.sh in another script,dailybuild.sh ,I would like to test that the script ran correctly.
For this I used $?, but this value is turning out to be 1 instead of 0 even though the build.sh is correctly running.?Basically what I want to test is that the contents of build.sh ran properly-ie the code was compiled properly.
Is there a way to test that it ran correctly?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER