Glusk / sprouts

A multi-platform implementation of Sprouts, built with libGDX.
MIT License
1 stars 1 forks source link

Fix Deploy condition #122

Closed Glusk closed 5 years ago

Glusk commented 5 years ago

Currently the tag condition for deployment looks like this $TRAVIS_TAG =~ ^v\d+\.\d+\.\d+.*$. Travis uses the following bash snippet to check this condition:

if [[ <condition> ]]; then <deploy>; fi

\d doesn't work in POSIX regular expressions (more info).

The solution is to re-write the condition as follows: $TRAVIS_TAG =~ ^v[0-9]+.[0-9]+.[0-9]+.*$