Skip to content

Commit

Permalink
dev: fix shellcheck lint issues (#4657)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Apr 18, 2024
1 parent 003b048 commit d681d93
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ EOF
}

parse_args() {
#BINDIR is ./bin unless set be ENV
# over-ridden by flag below
# BINDIR is ./bin unless set be ENV
# overridden by flag below

BINDIR=${BINDIR:-./bin}
while getopts "b:dh?x" arg; do
Expand Down Expand Up @@ -150,9 +150,6 @@ is_command() {
echoerr() {
echo "$@" 1>&2
}
log_prefix() {
echo "$0"
}
_logp=6
log_set_priority() {
_logp="$1"
Expand Down Expand Up @@ -200,7 +197,7 @@ uname_os() {
mingw*) os="windows" ;;
cygwin*) os="windows" ;;
win*) os="windows" ;;
sunos) [ $(uname -o) == "illumos" ] && os=illumos ;;
sunos) [ "$(uname -o)" = "illumos" ] && os=illumos ;;
esac
echo "$os"
}
Expand All @@ -218,7 +215,7 @@ uname_arch() {
armv7*) arch="armv7" ;;
loongarch64) arch="loong64" ;;
esac
echo ${arch}
echo "${arch}"
}
uname_os_check() {
os=$(uname_os)
Expand Down

0 comments on commit d681d93

Please sign in to comment.