Skip to content

Commit

Permalink
Added extra sanitation for DEVOPS_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
ianayl committed Feb 7, 2025
1 parent 41d664a commit bc30802
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devops/scripts/benchmarking/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ load_configs() {
#
# Derive /devops based on location of this script:
[ -z "$DEVOPS_PATH" ] && DEVOPS_PATH="$(dirname "$0")/../.."
if [ -z "$(printf "%s" "$DEVOPS_PATH" | grep -oE '^[a-zA-Z0-9._\/-]+$')"]; then
echo "Bad DEVOPS_PATH, please specify DEVOPS_PATH variable."
exit 1
fi

TESTS_CONFIG="$(realpath "$DEVOPS_PATH/benchmarking/enabled_tests.conf")"
COMPARE_PATH="$(realpath "$DEVOPS_PATH/scripts/benchmarking/compare.py")"
Expand Down

0 comments on commit bc30802

Please sign in to comment.