8b5c41e409
This patch continues the work to support NixOS and others non-FHS distributions by replacing instances of `/bin/bash` with `/usr/bin/env bash`, which works correctly in more systems than the former. Signed-off-by: Luis Holanda <luiscmholanda@gmail.com>
10 lines
297 B
Bash
Executable File
10 lines
297 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
cd "$REPO_ROOT"
|
|
|
|
# shellcheck disable=SC2046
|
|
shellcheck -x $(awk '/#!\/usr\/bin\/env/&&FNR==1{print FILENAME}' $(git ls-files))
|
|
find . \( -name 'WORKSPACE' -o -name 'BUILD' -o -name '*.bzl' \) -exec buildifier {} +
|