Think before you speak, read before you think.

shell下的三元表达式

by

in

如果第一部分成功则执行第二部分

否则就执行第三部分

nginx -s reload &&  echo 'nginx 重新载入成功' || echo 'nginx 重新载入失败'

基本就的实现


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *