Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit 1177e7e

Browse files
committed
Feat: Minor refactor and bug fixes
1 parent e0ed255 commit 1177e7e

File tree

7 files changed

+539
-506
lines changed

7 files changed

+539
-506
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build:docker": "docker build -f docker/Dockerfile . -t 'dockstatapi:local'",
2020
"clean": "bun run clean:win || bun run clean:lin",
2121
"clean:win": "node -e \"process.exit(process.platform === 'win32' ? 0 : 1)\" && cmd /c del /Q data/dockstatapi* && cmd /c del /Q stacks/* && cmd /c del /Q reports/markdown/*.md && echo 'success'",
22-
"clean:lin": "node -e \"process.exit(process.platform !== 'win32' ? 0 : 1)\" && rm -f data/dockstatapi* && rm -rf stacks/* && rm -f reports/markdown/*.md && echo 'success'",
22+
"clean:lin": "node -e \"process.exit(process.platform !== 'win32' ? 0 : 1)\" && rm -f data/dockstatapi* && sudo rm -rf stacks/* && rm -f reports/markdown/*.md && echo 'success'",
2323
"knip": "knip",
2424
"lint": "biome check --formatter-enabled=true --linter-enabled=true --organize-imports-enabled=true --fix src"
2525
},

src/core/stacks/checker.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ export async function checkStacks() {
88
logger.debug(`Checking ${stacks.length} stack(s)`);
99
for (const stack of stacks) {
1010
try {
11-
logger.debug(`Checking ${stack.id}`);
12-
const composeFile = Bun.file(
13-
`stacks/${stack.id}-${stack.name}/docker-compose.yaml`,
14-
);
11+
const composeFilePath =
12+
`stacks/${stack.id}-${stack.name}/docker-compose.yaml`.replaceAll(
13+
" ",
14+
"_",
15+
);
16+
const composeFile = Bun.file(composeFilePath);
17+
logger.debug(`Checking ${stack.id} - ${composeFilePath}`);
1518

1619
if (!(await composeFile.exists())) {
1720
logger.error(`Stack (${stack.id} - ${stack.name}) has no compose file`);

0 commit comments

Comments
 (0)