Fix formula version.
This commit is contained in:
parent
08aeee6c72
commit
63398cce1f
|
|
@ -4,8 +4,17 @@
|
||||||
# Requires SSH credentials in ssh-agent to work.
|
# Requires SSH credentials in ssh-agent to work.
|
||||||
# Run by Travis-CI when a new release is created on GitHub.
|
# Run by Travis-CI when a new release is created on GitHub.
|
||||||
|
|
||||||
make unifi-poller.rb
|
if [ -z "$VERSION" ]; then
|
||||||
VERSION=$(grep -E '^\s+url\s+"' unifi-poller.rb | cut -d/ -f7 | cut -d. -f1,2,3)
|
VERSION=$TRAVIS_TAG
|
||||||
|
fi
|
||||||
|
VERSION=$(echo $VERSION|tr -d v)
|
||||||
|
|
||||||
|
make unifi-poller.rb VERSION=$VERSION
|
||||||
|
|
||||||
|
if [ -z "$VERSION" ]; then
|
||||||
|
VERSION=$(grep -E '^\s+url\s+"' unifi-poller.rb | cut -d/ -f7 | cut -d. -f1,2,3)
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf homebrew-mugs
|
rm -rf homebrew-mugs
|
||||||
git config --global user.email "unifi@auto.releaser"
|
git config --global user.email "unifi@auto.releaser"
|
||||||
git config --global user.name "unifi-auto-releaser"
|
git config --global user.name "unifi-auto-releaser"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue