examples: fix shellcheck in build scripts

This commit is contained in:
Fischer Moseley 2026-02-12 02:09:36 -07:00
parent acbc8f8f2d
commit 858c9554dc
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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 <tool_name>