[Helper] Fix for numbers in compose project name

master
andryyy 2020-03-29 10:45:27 +02:00
parent afd5aab918
commit a71d991c12
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ if [[ -z ${COMPOSE_PROJECT_NAME} ]]; then
exit 1
else
echo "Found project name ${COMPOSE_PROJECT_NAME}"
CMPS_PRJ=$(echo ${COMPOSE_PROJECT_NAME} | tr -cd "[A-Za-z-_]")
CMPS_PRJ=$(echo ${COMPOSE_PROJECT_NAME} | tr -cd "[0-9A-Za-z-_]")
fi
function backup() {