Skip to content

Commit 9a5cb46

Browse files
committed
Fix ShellCheck annotations in doctor
1 parent 746d20c commit 9a5cb46

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎doctor.sh‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ add_note() {
2727
is_steamos() {
2828
[[ -r /etc/os-release ]] || return 1
2929
(
30+
# shellcheck source=/dev/null
3031
source /etc/os-release
3132
[[ "${ID:-}" == "steamos" || "${VARIANT_ID:-}" == "steamos" ]]
3233
)
@@ -50,6 +51,8 @@ check "Git on host" command -v git
5051
check "Ubuntu box exists" box_exists
5152
check "Git in box" distrobox enter "${BOX_NAME}" -- bash -lc 'command -v git'
5253
check "Node in box" distrobox enter "${BOX_NAME}" -- bash -lc 'command -v node'
54+
# HOME is intentionally expanded by the shell inside the Distrobox.
55+
# shellcheck disable=SC2016
5356
check "Codex CLI in box" distrobox enter "${BOX_NAME}" -- bash -lc 'command -v codex || test -x "${HOME}/.local/bin/codex" || test -x "${HOME}/.codex/bin/codex"'
5457
check "ChatGPT app in box" distrobox enter "${BOX_NAME}" -- bash -lc 'command -v chatgpt'
5558
check "/home/deck visible in box" distrobox enter "${BOX_NAME}" -- test -d /home/deck
@@ -65,4 +68,3 @@ fi
6568

6669
printf '\nSummary: %d passed, %d failed, %d notes\n' "${passed}" "${failed}" "${notes}"
6770
(( failed == 0 ))
68-

0 commit comments

Comments
 (0)