2018-02-21T13:27:29Z||2018-02-21T13:27:29Z


参考这个:https://unix.stackexchange.com/questions/309339/how-to-exit-a-shell-script-if-one-part-of-it-fails

直接在开头加上set -e

或者:

command || exit 1