bazel: shebang-test: pass bazel dir in Nix

This commit is contained in:
Andreas Herrmann
2019-10-11 21:44:28 +02:00
committed by Florian Klink
parent 7429acdea1
commit d132d47199
2 changed files with 3 additions and 2 deletions
@@ -2,6 +2,7 @@
bazel
, bazelTest
, distDir
, extracted
, runLocal
, unzip
}:
@@ -26,6 +27,7 @@ let
{ grep -Re '#!/usr/bin' $dir && FAIL=1; } || true
{ grep -Re '#![^[:space:]]*/bin/env python' $dir && FAIL=1; } || true
}
BAZEL_EXTRACTED=${extracted bazel}/install
check_shebangs $BAZEL_EXTRACTED
while IFS= read -r -d "" zip; do
unzipped="./$zip/UNPACKED"