{"published":"2022-07-05 21:00:45","url":"https://hirosaji.hatenablog.com/entry/2022/07/05/210045","provider_url":"https://hatena.blog","version":"1.0","width":"100%","blog_url":"https://hirosaji.hatenablog.com/","blog_title":"Hirosaji Tech Blog \ud83c\udf59","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhirosaji.hatenablog.com%2Fentry%2F2022%2F07%2F05%2F210045\" title=\"\u30cd\u30b3\u3067\u3082\u308f\u304b\u308b set \u00b1o pipefail - Hirosaji Tech Blog \ud83c\udf59\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","image_url":null,"categories":["shell"],"author_name":"hirosaji","title":"\u30cd\u30b3\u3067\u3082\u308f\u304b\u308b set \u00b1o pipefail","author_url":"https://blog.hatena.ne.jp/hirosaji/","height":"190","provider_name":"Hatena Blog","description":"Bash\uff08UNIX\u7cfb\u306e\u30b7\u30a7\u30eb\uff09\u3092\u5b9f\u884c\u3059\u308b\u969b\u3001 $ set -o pipefail $ set +o pipefail \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u304c\u304a\u307e\u3058\u306a\u3044\u7684\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u306e\u3092\u3088\u304f\u898b\u307e\u3059\u3002 \u4eca\u56de\u306f\u3001\u62c5\u5f53\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u30d7\u30ed\u30c0\u30af\u30c8\u306eCI\u306b\u3053\u306e\u30b3\u30de\u30f3\u30c9\u304c\u542b\u307e\u308c\u3066\u3044\u305f\u3053\u3068\u3082\u3042\u308a\u3001\u51e6\u7406\u306e\u8a73\u7d30\u3092\u8abf\u3079\u307e\u3057\u305f\u3002 \u305d\u306e\u899a\u66f8\u3082\u304b\u306d\u3066\u3001\u89e3\u8aac\u8a18\u4e8b\u3092\u6b8b\u3057\u307e\u3059\u3002 TL;DR set \u00b1o pipefail \u306f\u3001\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3092\u7528\u3044\u308b\u30b3\u30de\u30f3\u30c9\u306e\u7d42\u4e86\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u5f71\u97ff\u3059\u308b\u3002 set -o pipefail \u3092\u4f7f\u3046\u3068\u3001\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u5185\u306e\u3044\u305a\u308c\u304b\u306e\u30b3\u30de\u30f3\u30c9\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u3001\u305d\u306e\u5931\u6557\u3057\u305f\u30b3\u30de\u30f3\u30c9\u306e\u7d42\u4e86\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u5168\u4f53\u306e\u7d42\u4e86\u30b9\u30c6\u30fc\u30bf\u30b9\u3068\u306a\u2026"}