打赏

星辰大海ゞ

That which does not kill us makes us stronger!

导航

2021年5月6日 #

Bash脚本中的 set -euxo pipefail

摘要: 本文将介绍Bash中 set -euxo pipefail,它们可以帮助你写出更容易维护也更安全的脚本。这也是Bash脚本的终极调试手段。 set -e set -e 选项可以让你的脚本在出现异常时马上退出,后续命令不再执行。默认情况下Shell脚本不会因为错误而结束执行,但大多数情况是,我们希望出 阅读全文

posted @ 2021-05-06 11:43 星辰大海ゞ 阅读(1378) 评论(0) 推荐(1) 编辑