Skip to content

Commit

Permalink
fix(zk): check if file actually exists (matter-labs#1442)
Browse files Browse the repository at this point in the history
## What ❔

<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.
- [ ] Linkcheck has been run via `zk linkcheck`.
  • Loading branch information
montekki authored Mar 15, 2024
1 parent 9bb47fa commit e6fa936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/zk/src/down.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function down() {
await utils.spawn('docker run --rm -v ./volumes:/volumes postgres:14 bash -c "rm -rf /volumes/*"');
// cleaning up dockprom
// no need to delete the folder - it's going to be deleted on the next start
if (fs.existsSync('./target/dockprom')) {
if (fs.existsSync('./target/dockprom/docker-compose.yml')) {
await utils.spawn('docker compose -f ./target/dockprom/docker-compose.yml down -v');
}
}
Expand Down

0 comments on commit e6fa936

Please sign in to comment.