diff options
author | EuAndreh <eu@euandre.org> | 2018-12-22 18:19:29 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-12-22 18:19:29 -0200 |
commit | d4e6648afd61205136c98fdc56cf151eb437a078 (patch) | |
tree | 4503e78d64133edeb8679c57d58ac96d6fef7e9e /scripts/bump.sh | |
parent | mrconfig.ini. (diff) | |
download | dotfiles-d4e6648afd61205136c98fdc56cf151eb437a078.tar.gz dotfiles-d4e6648afd61205136c98fdc56cf151eb437a078.tar.xz |
Move external scripts to bin/.
Diffstat (limited to 'scripts/bump.sh')
-rwxr-xr-x | scripts/bump.sh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts/bump.sh b/scripts/bump.sh deleted file mode 100755 index 86eed54..0000000 --- a/scripts/bump.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -function latest_version() { - git tag | sort -V | tail -n 1 -} - -function overflow_bump() { - IFS=".$IFS" - read a b c - if [[ "$b" == 999 ]]; then - echo $((a + 1)).0.0 - elif [[ "$c" == 999 ]]; then - echo $a.$((b + 1)).0 - else - echo $a.$b.$((c + 1)) - fi -} - -latest_version | overflow_bump - -echo "$1" | overflow_bump |