Skip to content

Commit c6d9772

Browse files
committed
fix(demo-wiab): wpb-17321 fix linting errors
1 parent 564d426 commit c6d9772

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

bin/autodeploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
#!/usr/bin/env bash
12
# This playbook is deprecated in favor of new wire in a box demo solution
23
# https://docs.wire.com/latest/how-to/install/demo-wiab.html
34

4-
#!/usr/bin/env bash
55
# shellcheck disable=SC2087
66

77
# This script can be replaced with a more simpler solution of wiab-demo installtion

bin/wiab-demo/offline-env.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ check_or_load_image() {
88
local image_pattern="$2"
99

1010
# Check if any image matching pattern exists in docker
11-
local existing_image=$(sudo docker images --format "{{.Repository}}:{{.Tag}}" | grep "$image_pattern" | head -1)
11+
local existing_image
12+
existing_image=$(sudo docker images --format "{{.Repository}}:{{.Tag}}" | grep "$image_pattern" | head -1)
1213
if [ -n "$existing_image" ]; then
1314
echo "$existing_image"
1415
return 0

offline/cd_demo.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ set -euo pipefail
44

55
CD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
66
TF_DIR="${CD_DIR}/../terraform/examples/wiab-demo-hetzner"
7+
# shellcheck disable=SC2034 # May be used in future versions
78
BIN_DIR="${CD_DIR}/../bin"
9+
# shellcheck disable=SC2034 # May be used in future versions
810
ARTIFACTS_DIR="${CD_DIR}/demo-build/output"
911
ANSIBLE_DIR="${CD_DIR}/../ansible"
1012
INVENTORY_DIR="${ANSIBLE_DIR}/inventory/demo"

0 commit comments

Comments
 (0)