Last active
November 30, 2019 06:36
-
-
Save yousan/34016e297cad5871b27a94135d5e4d43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# バージョンを求めるスクリプトです。 | |
# Usage: curl -s -L https://gist.githubusercontent.com/yousan/34016e297cad5871b27a94135d5e4d43/raw/46f5662225ffec4bcfc4bc720a42cbb74cd8c9b3/version.sh | bash | |
# @see https://qiita.com/yousan/items/cffa19f67f225097127d | |
echo $(git tag | sort -V | tail -1) '-' | tr -d " \n"; git rev-parse HEAD | cut -c1-7 | tr -d "\n"; echo '-'$(date +%Y%m%d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment