Skip to content

Commit ccb59e3

Browse files
Shellcheck fixes
Signed-off-by: Abhijit Gadgil <agadgil@progress.com>
1 parent 3870e5b commit ccb59e3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.expeditor/scripts/shared.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,8 @@ install_acceptance_bootstrap_hab_binary() {
583583
need_cmd gtar
584584
need_cmd gtail
585585

586-
local hab_scratch_dir="hab_scratch"
586+
local hab_scratch_dir
587+
hab_scratch_dir="hab_scratch"
587588
rm -Rf "${hab_scratch_dir}"
588589
mkdir "${hab_scratch_dir}"
589590

@@ -592,7 +593,8 @@ install_acceptance_bootstrap_hab_binary() {
592593
--url https://bldr.acceptance.habitat.sh \
593594
--download-directory="${hab_scratch_dir}"
594595

595-
local hab_artifact=$(find "${hab_scratch_dir}"/artifacts -type f -name 'chef-hab-*-aarch64-darwin.hart')
596+
local hab_artifact
597+
hab_artifact=$(find "${hab_scratch_dir}"/artifacts -type f -name 'chef-hab-*-aarch64-darwin.hart')
596598

597599
# GNU tail, tar, from the mac-bootstrapper
598600
gtail --lines=+6 "${hab_artifact}" | \
@@ -602,7 +604,8 @@ install_acceptance_bootstrap_hab_binary() {
602604
--strip-components=8 \
603605
--wildcards "opt/hab/pkgs/chef/hab/*/*/bin"
604606

605-
local bootstrap_hab_binary="hab"
607+
local bootstrap_hab_binary
608+
bootstrap_hab_binary="hab"
606609

607610
install -v "${bootstrap_hab_binary}" /usr/local/bin/hab
608611

0 commit comments

Comments
 (0)