Skip to content

Commit 6139f48

Browse files
committed
fix(selfhost): select local image builds reliably
1 parent 96a6acb commit 6139f48

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/selfhost.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ case "$command_name" in
9898
;;
9999
up)
100100
doctor
101-
if "${compose[@]}" config --images | grep -q ':local$'; then
101+
images="$("${compose[@]}" config --images)"
102+
if grep -q ':local$' <<<"$images"; then
102103
"${compose[@]}" up -d --build --wait
103104
else
104105
"${compose[@]}" pull

0 commit comments

Comments
 (0)