Skip to content

Instantly share code, notes, and snippets.

View hhuseyinpay's full-sized avatar
🎯
Focusing

Hasan Hüseyin Pay hhuseyinpay

🎯
Focusing
View GitHub Profile
[
{
"ulke": "AFGANİSTAN",
"tr": "AFGAN",
"en": "Afghan"
},
{
"ulke": "ALMANYA",
"tr": "ALMAN",
"en": "German"
@hhuseyinpay
hhuseyinpay / version.sh
Last active July 16, 2022 19:10
A simple bash script for git tag with semantic versioning
#! /bin/bash
# Set a tag prefix
TAG_PREFIX=v
# https://stackoverflow.com/a/27332476/7485480
# get highest tag number
VERSION=$(git tag --sort=committerdate | grep -E '^'"$TAG_PREFIX"'-[0-9]' | tail -1)
[ -z "$VERSION" ] && VERSION="${TAG_PREFIX}-0.0.0"