From 02e65b132d36b171f7f1d5655014f57504bc4e86 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 6 Jan 2025 17:15:16 +0100 Subject: [PATCH] fix: [vps] make ``recover-target`` work with ``-n`` for dry-run There was an error as compose itself was launched in dry-run mode even when trying to get the project name. --- bin/vps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/vps b/bin/vps index 75c4fb4..2cfebab 100755 --- a/bin/vps +++ b/bin/vps @@ -943,7 +943,7 @@ export -f rocketchat:drop-indexes compose:project_name() { if [ -z "$PROJECT_NAME" ]; then - PROJECT_NAME=$(compose --get-project-name) || { + PROJECT_NAME=$(DRY_RUN= compose --get-project-name) || { err "Couldn't get project name." return 1 }