fix(setup): anchor validateSwarm grep to whole line

This commit is contained in:
detail-app[bot]
2026-09-04 02:48:21 +00:00
committed by GitHub
parent 1572008cdf
commit 3632f21f66
2 changed files with 65 additions and 1 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export const validateRClone = () => `
`;
export const validateSwarm = () => `
if docker info --format '{{.Swarm.LocalNodeState}}' | grep -q 'active'; then
if docker info --format '{{.Swarm.LocalNodeState}}' | grep -qx 'active'; then
echo true
else
echo false