Skip to content

Commit

Permalink
fix: Default version explicitly to 'latest'
Browse files Browse the repository at this point in the history
  • Loading branch information
TekWizely committed Aug 25, 2021
1 parent 8567a9f commit c7b1d9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bingo
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -133,6 +133,8 @@ install:
export version="${pkgversion}"
fi

: ${version:='latest'}

pkgbin="$( basename "${pkg}" )"

if [ -z "${cmd}" ]; then
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c7b1d9b

Please sign in to comment.