Skip to content

Commit

Permalink
Update ci-start-app-with-scripts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vincanger committed Mar 8, 2024
1 parent a34b2fd commit 558cc30
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/ci-start-app-with-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,16 @@ spawn(
'sh',
[
'-c',
'(docker container rm $(docker container ls -f name=^wasp-dev-db-OpenSaaS- -q) -f || true) && docker volume rm $(docker volume ls -f name=^wasp-dev-db-OpenSaaS- -q) -f || true',
`
containers=$(docker container ls -f name=^wasp-dev-db-OpenSaaS- -q)
if [ -n "$containers" ]; then
docker container rm $containers -f
fi
volumes=$(docker volume ls -f name=^wasp-dev-db-OpenSaaS- -q)
if [ -n "$volumes" ]; then
docker volume rm $volumes -f
fi
`,
],
cb
);
Expand Down

0 comments on commit 558cc30

Please sign in to comment.