Files
openstapps/.gitlab/ci/getRegistryTag.sh
Rainer Killinger 9ec35e65f8 ci: fixup todos
2023-07-18 13:13:07 +02:00

9 lines
212 B
Bash
Executable File

#!/usr/bin/env sh
# script returns semantical versioning string like 2.0.0 (if $1 is v2.0.0) or $1
if echo -n $1 | grep -Eq 'v[0-9]+\.[0-9]+\.[0-9]+'; then
echo $(echo -n "$1" | cut -c 2-);
else
echo $1;
fi