File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ image : koalaman/shellcheck-alpine:stable
2+
3+ shellcheck-run :
4+ stage : test
5+ script :
6+ - shellcheck --version
7+ - shellcheck --color=always ./run
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bashio
2+ # shellcheck shell=bash
23
34USER="homeassistant"
45GROUP="$USER"
@@ -56,7 +57,7 @@ if [ -n "${EXTRA_GID:-}" ]; then
5657 supplementary_groups+=( "$group" )
5758 done
5859
59- bashio::log.info "Appending supplementary groups: ${supplementary_groups[@ ]}"
60+ bashio::log.info "Appending supplementary groups: ${supplementary_groups[* ]}"
6061 for group in "${supplementary_groups[@]}"; do
6162 addgroup "$USER" "$group"
6263 done
9596#
9697
9798bashio::log.info "Activating venv"
99+ # shellcheck source=/dev/null
98100. "$VENV_PATH/bin/activate"
99101
100102bashio::log.info "Setting new \$HOME"
101- export HOME="$( getent passwd "$USER" | cut -d: -f6 )"
103+ HOME="$( getent passwd "$USER" | cut -d: -f6 )"
104+ export HOME
102105
103106# Everything below should be kept in sync with upstream's
104107# https://github.com/home-assistant/core/blob/dev/rootfs/etc/services.d/home-assistant/run
You can’t perform that action at this time.
0 commit comments