Skip to content

Commit d681d93

Browse files
authored
dev: fix shellcheck lint issues (#4657)
1 parent 003b048 commit d681d93

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

install.sh

+4-7
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ EOF
1818
}
1919

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

2424
BINDIR=${BINDIR:-./bin}
2525
while getopts "b:dh?x" arg; do
@@ -150,9 +150,6 @@ is_command() {
150150
echoerr() {
151151
echo "$@" 1>&2
152152
}
153-
log_prefix() {
154-
echo "$0"
155-
}
156153
_logp=6
157154
log_set_priority() {
158155
_logp="$1"
@@ -200,7 +197,7 @@ uname_os() {
200197
mingw*) os="windows" ;;
201198
cygwin*) os="windows" ;;
202199
win*) os="windows" ;;
203-
sunos) [ $(uname -o) == "illumos" ] && os=illumos ;;
200+
sunos) [ "$(uname -o)" = "illumos" ] && os=illumos ;;
204201
esac
205202
echo "$os"
206203
}
@@ -218,7 +215,7 @@ uname_arch() {
218215
armv7*) arch="armv7" ;;
219216
loongarch64) arch="loong64" ;;
220217
esac
221-
echo ${arch}
218+
echo "${arch}"
222219
}
223220
uname_os_check() {
224221
os=$(uname_os)

0 commit comments

Comments
 (0)