fix regexp
This commit is contained in:
parent
0323a3b521
commit
2b193ddf0e
@ -64,7 +64,7 @@ promote_image() {
|
||||
local SOURCE_TAG="$1"
|
||||
|
||||
# Vérifie si le tag source suit le format attendu
|
||||
if [[ ! "$SOURCE_TAG" =~ ^(.+):([0-9]{4}\.[0-9]\.[0-9]+)-([a-zA-Z0-9]+)\.([0-9]+)\.([a-z0-9]+)$ ]]; then
|
||||
if [[ ! "$SOURCE_TAG" =~ ^(.+):([0-9]{4}\.[0-9]+\.[0-9]+)-([a-zA-Z0-9]+)\.([0-9]+)\.([a-z0-9]+)$ ]]; then
|
||||
echo "Erreur : Le tag source ne suit pas le format attendu : $SOURCE_TAG"
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user