I\'m building a Shell Script that has a if function like this one:
if
if jarsigner -verbose -keystore $keyst -keystore $pass $jar_file $kalias then
exit 1 is all you need. The 1 is a return code, so you can change it if you want, say, 1 to mean a successful run and -1 to mean a failure or something like that.
exit 1
1
-1