【发布时间】:2011-05-21 20:44:20
【问题描述】:
我正在构建一个具有 if 函数的 Shell 脚本,如下所示:
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
...
我希望在显示错误消息后完成脚本的执行。我该怎么做?
【问题讨论】: