From a775ae82fed4f703db28edc3d9d58b5652d6979d Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Tue, 11 Jun 2019 13:55:17 -0700 Subject: Fix broken pipe error building version file (11:34:09) ERROR: /tmpfs/src/github/repo/runsc/BUILD:82:1: Couldn't build file runsc/version.txt: Executing genrule //runsc:deb-version failed (Broken pipe): bash failed: error executing command PiperOrigin-RevId: 252691902 --- runsc/BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runsc/BUILD b/runsc/BUILD index 3d6c92e4c..8a57c597b 100644 --- a/runsc/BUILD +++ b/runsc/BUILD @@ -82,7 +82,7 @@ pkg_tar( genrule( name = "deb-version", outs = ["version.txt"], - cmd = "$(location :runsc) -version | head -n 1 | sed 's/^[^0-9]*//' > $@", + cmd = "$(location :runsc) -version | grep 'runsc version' | sed 's/^[^0-9]*//' > $@", stamp = 1, tools = [":runsc"], ) -- cgit v1.2.3