aboutsummaryrefslogtreecommitdiff
path: root/scripts/bump.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-12-22 18:19:29 -0200
committerEuAndreh <eu@euandre.org>2018-12-22 18:19:29 -0200
commitd4e6648afd61205136c98fdc56cf151eb437a078 (patch)
tree4503e78d64133edeb8679c57d58ac96d6fef7e9e /scripts/bump.sh
parentmrconfig.ini. (diff)
downloaddotfiles-d4e6648afd61205136c98fdc56cf151eb437a078.tar.gz
dotfiles-d4e6648afd61205136c98fdc56cf151eb437a078.tar.xz
Move external scripts to bin/.
Diffstat (limited to 'scripts/bump.sh')
-rwxr-xr-xscripts/bump.sh21
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