From 76bf57baf3f79a2817847427e1487950d42ba059 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Sat, 19 Mar 2022 14:15:31 -0500 Subject: [PATCH] Use correct match ending for project naming mode --- scripts/find-container.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/find-container.sh b/scripts/find-container.sh index 2582ba0..8ae0272 100755 --- a/scripts/find-container.sh +++ b/scripts/find-container.sh @@ -3,8 +3,9 @@ set -e if [[ ! -z "$NEXTCLOUD_PROJECT_NAME" ]]; then containerName="${NEXTCLOUD_PROJECT_NAME}[_-]" + matchEnd="[\._-]\d+" else - matchEnd="(,|\.\d+)" + matchEnd="," fi containerName="${containerName}${NEXTCLOUD_CONTAINER_NAME}"