Use correct match ending for project naming mode
This commit is contained in:
parent
52579827be
commit
76bf57baf3
1 changed files with 2 additions and 1 deletions
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue