Skip to content

Commit b7a4ce9

Browse files
authored
Merge pull request #474 from bcressey/fix-checks
fix migrations and shell checks
2 parents 9922cf5 + c322bd3 commit b7a4ce9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

twoliter/embedded/Makefile.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ if ! docker run --rm \
517517
bash -c \
518518
'flagged_scripts=0 && \
519519
cd /tmp/tools && \
520-
for shell_script in $(grep -l --directories=skip --regexp="^#\!.*bash$" * ); do
520+
for shell_script in $(grep -l --directories=skip --regexp='^#!.*bash$' * ); do
521521
if ! shellcheck \
522522
--external-sources \
523523
--source-path=SCRIPTDIR \
@@ -563,6 +563,11 @@ done'''
563563
script_runner = "bash"
564564
script = [
565565
'''
566+
if [[ ! -s Release.toml ]]; then
567+
echo "No Release.toml found, skipping checks for migrations."
568+
exit 0
569+
fi
570+
566571
# Collect all found problems and report in bulk; patterns become easier to see
567572
problems=()
568573
@@ -577,7 +582,7 @@ if [[ -z ${version} ]]; then
577582
exit 1
578583
fi
579584
580-
migrations_root="sources/api/migration/migrations/v${version}"
585+
migrations_root="sources/settings-migrations/v${version}"
581586
582587
# First pass: Check all migrations explicitly listed in Release.toml
583588

0 commit comments

Comments
 (0)