Skip to content

Commit 0ca444b

Browse files
authored
Fix build-* scripts to only target runtime directories (#2314)
1 parent 0d8b964 commit 0ca444b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

hack/build-images.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ _main() {
3939
_buildImage "" $_version-slim
4040

4141
for _runtimePath in "$ROOT_FOLDER/runtimes/"*/; do
42+
[ -d "$_runtimePath" ] || continue
4243
_buildRuntimeImage $_runtimePath $_version
4344
done
4445
}

hack/build-wheels.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ _main() {
4444
_buildWheel . $_outputPath
4545

4646
for _runtime in "$ROOT_FOLDER/runtimes/"*/; do
47+
[ -d "$_runtime" ] || continue
4748
echo "---> Building MLServer runtime: '$_runtime'"
4849
_buildWheel $_runtime $_outputPath
4950
done

0 commit comments

Comments
 (0)