Skip to content

Commit c73c0a3

Browse files
committed
Fix verify-shellcheck script and fix findings
1 parent d125bd8 commit c73c0a3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hack/ensure-golangci-lint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ echoerr() {
167167
echo "$@" 1>&2
168168
}
169169
log_prefix() {
170+
# Invoked indirectly
171+
# shellcheck disable=SC2317
170172
echo "$0"
171173
}
172174
_logp=6
@@ -230,7 +232,7 @@ uname_arch() {
230232
armv6*) arch="armv6" ;;
231233
armv7*) arch="armv7" ;;
232234
esac
233-
echo ${arch}
235+
echo "${arch}"
234236
}
235237
uname_os_check() {
236238
os=$(uname_os)

hack/verify-shellcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fi
7373

7474
echo "Running shellcheck..."
7575
cd "${ROOT_PATH}" || exit
76-
IGNORE_FILES=$(find . -name "*.sh" | grep "tilt_modules")
76+
IGNORE_FILES=$(find . -name "*.sh" | { grep "tilt_modules" || true; })
7777
echo "Ignoring shellcheck on ${IGNORE_FILES}"
7878
FILES=$(find . -name "*.sh" -not -path "./tilt_modules/*")
7979
while read -r file; do

0 commit comments

Comments
 (0)