From 858c9554dc0244520adf09d5d3afc9603db45a91 Mon Sep 17 00:00:00 2001 From: Fischer Moseley <42497969+fischermoseley@users.noreply.github.com> Date: Thu, 12 Feb 2026 02:09:36 -0700 Subject: [PATCH] examples: fix shellcheck in build scripts --- examples/common/build_ice40.sh | 2 ++ examples/common/build_vivado.sh | 2 ++ examples/common/find_tool.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/examples/common/build_ice40.sh b/examples/common/build_ice40.sh index 323e38a..115ac0d 100755 --- a/examples/common/build_ice40.sh +++ b/examples/common/build_ice40.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash set -euo pipefail + +# shellcheck source=examples/common/find_tool.sh source "$(dirname "$(readlink -f "$0")")/find_tool.sh" # Make sure tools are accessible diff --git a/examples/common/build_vivado.sh b/examples/common/build_vivado.sh index 1da24e9..d170577 100755 --- a/examples/common/build_vivado.sh +++ b/examples/common/build_vivado.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash set -euo pipefail + +# shellcheck source=examples/common/find_tool.sh source "$(dirname "$(readlink -f "$0")")/find_tool.sh" # Make sure Vivado is accessible diff --git a/examples/common/find_tool.sh b/examples/common/find_tool.sh index 60c8a30..18f927f 100644 --- a/examples/common/find_tool.sh +++ b/examples/common/find_tool.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Find a tool binary from either the $PATH environment variable, or another # environment variable named after the tool (ie, $VIVADO or $YOSYS). # Usage: find_tool