From c7b1d9bb634772b013c81346ac4fce54fd6cec4b Mon Sep 17 00:00:00 2001 From: "TekWize.ly" Date: Tue, 24 Aug 2021 18:48:01 -0700 Subject: [PATCH] fix: Default version explicitly to 'latest' --- bingo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bingo b/bingo index 93aa3bf..fcda6b5 100755 --- a/bingo +++ b/bingo @@ -1,6 +1,6 @@ #!/usr/bin/env run shebang -BINGO_VERSION="0.3.0" +BINGO_VERSION="0.3.1" # ############################################################################## # # BINGO - The missing package manager for golang binaries @@ -133,6 +133,8 @@ install: export version="${pkgversion}" fi + : ${version:='latest'} + pkgbin="$( basename "${pkg}" )" if [ -z "${cmd}" ]; then @@ -257,6 +259,8 @@ update: export version="${pkgversion}" fi + : ${version:='latest'} + if [ ! -e "${BINGO_BIN}/${cmd}" ]; then echo "Binary ${cmd} not found in ${BINGO_BIN}" 1>&2 exit 2