Fix tag script for OSX

pull/109/head
Zach Riggle 9 years ago
parent 1366b7d81d
commit 40869c352f

@ -1,8 +1,10 @@
#!/bin/sh
DATE=$(which gdate || which date)
git fetch --all
TAG=$(date -d "$(git log --tags -1 --format='%aD')" '+%Y.%m.%d')
TAG=$($DATE -d "$(git log --tags -1 --format='%aD')" '+%Y.%m.%d')
if git tag $TAG origin/master; then
git push origin $TAG

Loading…
Cancel
Save