Skip to content

Commit d777b09

Browse files
committed
add more debugging info to shell script
1 parent 209e2f6 commit d777b09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/check-sample-files.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ for dir in ./samples/*/; do
1818
# if there is a compose.yaml file, check if it is valid
1919
(
2020
cd $dir
21-
if ! defang compose config > /dev/null 2>/dev/null; then
22-
echo " - [ ] ${dir}compose.yaml contains errors"
21+
output=$(defang compose config 2>&1)
22+
if [[ $? -ne 0 ]]; then
23+
echo " - [ ] ${dir}compose.yaml is not valid according to \`defang compose config\`: $output"
2324
fi
2425
)
2526
fi

0 commit comments

Comments
 (0)