File tree Expand file tree Collapse file tree 1 file changed +1
-31
lines changed Expand file tree Collapse file tree 1 file changed +1
-31
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22#
3- # Originally from hangops slack
3+ # Author: Daniel Hoherd http://github.com/danielhoherd
44
55set -o pipefail
66set -e
77
8- if [[ -n " $DEBUG " ]]; then
9- # shellcheck disable=SC2086
10- if [[ " $( echo $DEBUG | tr ' [:upper:]' ' [:lower:]' ) " == " verbose" ]]; then
11- set -x
12- fi
13- fi
14-
15- function debug() {
16- if [[ -n " $DEBUG " ]]; then
17- echo " $@ "
18- fi
19- }
20-
21- function echo-stderr() {
22- echo " $@ " 1>&2 # # Send message to stderr.
23- }
24-
25- function fail() {
26- printf ' %s\n' " $1 " >&2 # # Send message to stderr. Exclude >&2 if you don't want it that way.
27- exit " ${2-1} " # # Return a code specified by $2 or 1 by default.
28- }
29-
30- function my-name() {
31- basename " $0 "
32- }
33-
34- function usage() {
35- echo " Usage: $( my-name) ARG ARG"
36- }
37-
388git tag -l " v*.*.*" --sort=-v:refname | awk -F. ' !seen[$1,$2]++'
You can’t perform that action at this time.
0 commit comments