Skip to content

Commit f5e0259

Browse files
committed
fix config checks
1 parent 4c6f2d0 commit f5e0259

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/check-sample-files.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ for dir in ./samples/*/; do
1616
fi
1717
else
1818
# if there is a compose.yaml file, check if it is valid
19-
if ! defang compose config -C "${dir}" > /dev/null 2>/dev/null; then
20-
echo " - [ ] ${dir}/compose.yaml contains errors"
21-
fi
19+
(
20+
cd $dir
21+
if ! defang compose config > /dev/null 2>/dev/null; then
22+
echo " - [ ] ${dir}compose.yaml contains errors"
23+
fi
24+
)
2225
fi
2326

2427
# Check that we have a .github/workflows/deploy.yaml file

0 commit comments

Comments
 (0)