{"provider_url":"https://hatena.blog","author_name":"ryuichi1208","version":"1.0","url":"https://ryuichi1208.hateblo.jp/entry/2021/01/24/130320","published":"2021-01-24 13:03:20","type":"rich","blog_title":"\u5730\u65b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5b66\u7fd2\u65e5\u8a18","provider_name":"Hatena Blog","title":"\u3010Bash\u3011\u5c0f\u6570\u70b9\u6f14\u7b97\u3059\u308b","image_url":null,"author_url":"https://blog.hatena.ne.jp/ryuichi1208/","categories":["Bash"],"height":"190","blog_url":"https://ryuichi1208.hateblo.jp/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2021%2F01%2F24%2F130320\" title=\"\u3010Bash\u3011\u5c0f\u6570\u70b9\u6f14\u7b97\u3059\u308b - \u5730\u65b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5b66\u7fd2\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u5f15\u6570\u3067\u6e21\u3055\u308c\u305f\u5206\u3060\u3051\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6570\u5024\u306b0.1\u305a\u3064\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3002\u30de\u30a4\u30ca\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u304b\u306e\u30bf\u30b0\u3092\u81ea\u52d5\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3057\u305f\u3044\u307f\u305f\u3044\u306a\u30b1\u30fc\u30b9\u3067\u4f7f\u3048\u305f\u308a\u3059\u308b\u3002 #!/bin/bash [[ ! -f \"version\" ]] && touch version [[ ! $# -gt 0 ]] && exit 1 for i in $(seq $1); do A=$(cat version) B=$(echo \"$A + 0.1\" | bc) echo ${B} > ./version echo \"$A --> $B\" done CI\u3067\u3084\u308b\u306e\u304bgit push\u3092hook\u3059\u308b\u306e\u304b\u5165\u308c\u3066\u3051\u3070\u30bf\u30b0\u2026"}