Skip to content

Commit 3191c6b

Browse files
committed
fix lint error in docker-build-run.sh
Signed-off-by: Akihiko Kuroda <[email protected]>
1 parent 5ee08ab commit 3191c6b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docker-build-run.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ print_header() {
2626
# Build the Docker image
2727
build_image() {
2828
print_header "Building Maestro MCP Docker image..."
29-
docker build -t maestro-mcp:latest .
30-
31-
if [ $? -eq 0 ]; then
29+
if docker build -t maestro-mcp:latest .; then
3230
print_status "Docker image built successfully!"
3331
else
3432
print_error "Failed to build Docker image"
@@ -55,13 +53,11 @@ run_container() {
5553

5654
# Run the container
5755
print_status "Starting new container..."
58-
docker run -d \
56+
if docker run -d \
5957
--name maestro-mcp \
6058
-p 8030:8030 \
6159
-v "$(pwd)/config.yaml:/app/config.yaml" \
62-
maestro-mcp:latest
63-
64-
if [ $? -eq 0 ]; then
60+
maestro-mcp:latest; then
6561
print_status "Container started successfully!"
6662
print_status "Maestro MCP is running at http://localhost:8030"
6763
else

0 commit comments

Comments
 (0)