2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-12-01 07:15:24 +00:00
bazel-lib/e2e/run_yq_symlinked_bin.sh
2023-12-08 00:30:39 -08:00

15 lines
283 B
Bash
Executable file

#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
BZLMOD_FLAG="${BZLMOD_FLAG:-}"
case "$(uname -s)" in
CYGWIN* | MINGW32* | MSYS* | MINGW*)
bazel run $BZLMOD_FLAG @yq//:yq.exe -- --null-input .a=5
;;
*)
bazel run $BZLMOD_FLAG @yq//:yq -- --null-input .a=5
;;
esac