Skip to content

Commit 1994423

Browse files
committed
allow to launch from any folder
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
1 parent 3416c4e commit 1994423

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/validate-configs.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#!/bin/bash
22
# Validate example configuration files
33

4+
# Get the directory where this script is located
5+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6+
47
echo "Validating example configurations..."
58
echo
69

7-
for config in examples/config-*.yaml; do
10+
for config in "$SCRIPT_DIR"/config-*.yaml; do
811
echo "Checking $config..."
912

1013
# Basic YAML syntax check using yq (if available) or python

0 commit comments

Comments
 (0)