Skip to content

Commit 43dd7df

Browse files
committed
Fixes to get shellcheck to pass
1 parent 2d3f2c5 commit 43dd7df

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

data/data/agent/files/usr/local/bin/install-status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ check_host_config() {
5454
check_ui() {
5555
local ui_issue="90_ui-availability"
5656
if systemctl is-active --quiet "agent-start-ui"; then
57-
echo "\e{green}Please go to \e{lightgreen}$AIUI_URL\e{reset}\e{green} in your browser to continue the installation\e{reset}" | set_issue "${ui_issue}"
57+
echo "\\e{green}Please go to \\e{lightgreen}$AIUI_URL\\e{reset}\\e{green} in your browser to continue the installation\\e{reset}" | set_issue "${ui_issue}"
5858
else
5959
clear_issue "${ui_issue}"
6060
fi

data/data/agent/files/usr/local/bin/set-node-zero.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ if [ "${IS_NODE_ZERO}" = "true" ]; then
4848
# Create tls certs, if they don't exist, via the installer command.
4949
# This allows the certs to be created at run-time, e.g. when installed via the UI
5050
AGENT_TLS_DIR=/opt/agent/tls
51-
if [ -z $(ls -A "$AGENT_TLS_DIR") ]; then
51+
if [ -z "$(ls -A "$AGENT_TLS_DIR")" ]; then
52+
# shellcheck disable=SC1091
5253
. /usr/local/bin/release-image.sh
5354
IMAGE=$(image_for installer)
5455
/usr/bin/podman run --privileged -v /tmp:/assets --rm "${IMAGE}" agent create certificates --dir=/assets

0 commit comments

Comments
 (0)