Skip to content

Commit

Permalink
move log_prefix definition up higher
Browse files Browse the repository at this point in the history
  • Loading branch information
spatten committed Dec 9, 2023
1 parent 2c36508 commit fc7a5a1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions install-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ is_command() {
echoerr() {
echo "$@" 1>&2
}
log_prefix() {
echo "$PREFIX"
}
_logp=6
log_set_priority() {
_logp="$1"
Expand Down Expand Up @@ -459,10 +462,6 @@ OS=$(uname_os)
ARCH=$(uname_arch)
PREFIX="$OWNER/$REPO"

# use in logging routines
log_prefix() {
echo "$PREFIX"
}
PLATFORM="${OS}/${ARCH}"
GITHUB_DOWNLOAD=https://github.com/${OWNER}/${REPO}/releases/download

Expand Down

0 comments on commit fc7a5a1

Please sign in to comment.