File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,11 @@ case $CMD in
6565 if [ -v " $VERSION " ] || [[ -z " $VERSION " ]]; then
6666 # fall back to branch name or `main` if no VERSION is set
6767 branch_name=$( git rev-parse --abbrev-ref HEAD)
68- if [[ " $branch_name " =~ ^\d +\.\d + ]]; then
69- echo -e " \033[36;1mTARGET: codegen -> No VERSION found, using branch name: \` $VERSION \` \033[0m"
68+ if [[ " $branch_name " =~ ^[0-9] +\. [0-9] + ]]; then
69+ echo -e " \033[36;1mTARGET: codegen -> No VERSION argument found, using branch name: \` $branch_name \` \033[0m"
7070 VERSION=" $branch_name "
7171 else
72- echo -e " \033[36;1mTARGET: codegen -> No VERSION found, using \` main\` \033[0m"
72+ echo -e " \033[36;1mTARGET: codegen -> No VERSION argument found, using \` main\` \033[0m"
7373 VERSION=" main"
7474 fi
7575 fi
You can’t perform that action at this time.
0 commit comments