Skip to content

Instantly share code, notes, and snippets.

@yousan
Last active November 30, 2019 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yousan/34016e297cad5871b27a94135d5e4d43 to your computer and use it in GitHub Desktop.
Save yousan/34016e297cad5871b27a94135d5e4d43 to your computer and use it in GitHub Desktop.
#!/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