Skip to content

Commit a6ec3db

Browse files
authored
Add bash guard to run_sparql_metatest.sh (#546)
* Initial plan * Add bash guard to run_sparql_metatest.sh before set -euo pipefail --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 65b26a3 commit a6ec3db

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/sparql_qc/run_sparql_metatest.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
# Run locally from src/ontology:
1818
# sh run.sh bash ../../tests/sparql_qc/run_sparql_metatest.sh
1919
# Requires: robot on PATH (present in the obolibrary/odkfull container).
20+
# Requires bash (uses bash-only features: `set -o pipefail`, `shopt`, arrays).
21+
if [ -z "${BASH_VERSION:-}" ]; then
22+
echo "::error::This script must be run with bash (not sh/dash)." >&2
23+
echo "Hint: sh run.sh bash ../../tests/sparql_qc/run_sparql_metatest.sh" >&2
24+
exit 1
25+
fi
2026
set -euo pipefail
2127

2228
HERE="$(cd "$(dirname "$0")" && pwd)"

0 commit comments

Comments
 (0)