我正在构建一个Shell脚本,它有一个if函数,像这样:
if jarsigner -verbose -keystore $keyst -keystore $pass $jar_file $kalias then echo $jar_file signed sucessfully else echo ERROR: Failed to sign $jar_file. Please recheck the variables fi ...
您是在找
原文链接:https://www.f2er.com/bash/391664.htmlexit
?
这是最好的bash指南。
http://tldp.org/LDP/abs/html/
在上下文中:
if jarsigner -verbose -keystore $keyst -keystore $pass $jar_file $kalias then echo $jar_file signed sucessfully else echo ERROR: Failed to sign $jar_file. Please recheck the variables 1>&2 exit 1 # terminate and indicate error fi ...