Skip to content

Commit

Permalink
Fix shellcheck where variable should be declared in separate line
Browse files Browse the repository at this point in the history
  • Loading branch information
rwsu committed Jan 20, 2023
1 parent ab34118 commit 157fd0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/data/agent/files/usr/local/bin/common.sh
Expand Up @@ -13,7 +13,8 @@ wait_for_assisted_service() {
}

is_node_zero() {
local is_rendezvous_host=$(ip -j address | jq "[.[].addr_info] | flatten | map(.local==\"$NODE_ZERO_IP\") | any")
local is_rendezvous_host
is_rendezvous_host=$(ip -j address | jq "[.[].addr_info] | flatten | map(.local==\"$NODE_ZERO_IP\") | any")
if [[ "${is_rendezvous_host}" == "true" ]]; then
echo 1
else
Expand Down

0 comments on commit 157fd0d

Please sign in to comment.