From 57e0e391f3639ca50f6c6d0f12fbf6384f1417b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 10 Jun 2021 19:01:20 +0300 Subject: [PATCH] find bazel executable easier --- getpath | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/getpath b/getpath index dda7924..4ffed00 100755 --- a/getpath +++ b/getpath @@ -1,6 +1,8 @@ #!/bin/bash -exec bazel aquery \ +# in builds.sr.ht, 'bazel' binary is stored in $HOME. +exec env PATH=$PATH:$HOME \ + bazel aquery \ --platforms "$1" "$2" 2>/dev/null | \ awk "/action 'GoLink/{f=1};/Outputs: / &&f{print;exit}" | \ awk -F'\\[|\\]' '{print $2}'