Skip to content

Commit

Permalink
Address shellcheck findings
Browse files Browse the repository at this point in the history
  • Loading branch information
brackendawson committed Sep 13, 2021
1 parent f4f257a commit b329d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gimme
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ _get_module() {
if ! grep '^go' "${GIMME_MODULE_PREFIX}go.mod" >/dev/null; then
die 'module has no go directive'
fi
_resolve_version "$(grep '^go' ${GIMME_MODULE_PREFIX}go.mod | awk '{ print $2 }').x"
_resolve_version "$(grep '^go' "${GIMME_MODULE_PREFIX}go.mod" | awk '{ print $2 }').x"
}

_file_older_than_secs() {
Expand Down Expand Up @@ -918,7 +918,7 @@ esac
case "${GIMME_GO_VERSION}" in
stable) GIMME_GO_VERSION=$(_get_curr_stable) ;;
oldstable) GIMME_GO_VERSION=$(_get_old_stable) ;;
module) GIMME_GO_VERSION=$(_resolve_version $GIMME_GO_VERSION) ;;
module) GIMME_GO_VERSION=$(_resolve_version mod) ;;
esac

_assert_version_given "$@"
Expand Down

0 comments on commit b329d4f

Please sign in to comment.