~whereswaldon/gover

b0f1dd807fd4d8a4bf3ec43dd708642e5292dab5 — Chris Waldon 4 years ago 32b7004
feat: fix version fallback to zero
1 files changed, 2 insertions(+), 2 deletions(-)

M gover
M gover => gover +2 -2
@@ 19,10 19,10 @@ major() {
    echo "$1" | cut -d. -f1
}
minor() {
    echo "$1" | cut -d. -f2 || 0
    echo "$1" | cut -d. -f2 || echo 0
}
patch() {
    echo "$1" | cut -d. -f3 || 0
    echo "$1" | cut -d. -f3 || echo 0
}

# version_dir emits the directory into which a particular go