Fix find command in deploy script to correctly list stack directories

This commit is contained in:
Dmitry
2026-05-27 22:01:08 +03:00
parent dc76e48e21
commit e366b3dd3f
+1 -1
View File
@@ -13,7 +13,7 @@ cd "$BASE"
if [ -n "$STACK" ]; then
dirs="$STACK"
else
dirs="$(find "$HOST" -mindepth 2 -maxdepth 2 -name docker-compose.yml -printf '%h\n' | cut -d/ -f2 | sort -u)"
dirs="$(find "$HOST" -mindepth 2 -maxdepth 2 -name docker-compose.yml | cut -d/ -f2 | sort -u)"
# Remove stale stacks whose directories were deleted from the repo
stale_dirs="$(docker ps -a \