Use correct match ending for project naming mode

This commit is contained in:
Robert Dailey 2022-03-19 14:15:31 -05:00
parent 52579827be
commit 76bf57baf3

View file

@ -3,8 +3,9 @@ set -e
if [[ ! -z "$NEXTCLOUD_PROJECT_NAME" ]]; then if [[ ! -z "$NEXTCLOUD_PROJECT_NAME" ]]; then
containerName="${NEXTCLOUD_PROJECT_NAME}[_-]" containerName="${NEXTCLOUD_PROJECT_NAME}[_-]"
matchEnd="[\._-]\d+"
else else
matchEnd="(,|\.\d+)" matchEnd=","
fi fi
containerName="${containerName}${NEXTCLOUD_CONTAINER_NAME}" containerName="${containerName}${NEXTCLOUD_CONTAINER_NAME}"