Skip to content

Commit b2a4633

Browse files
committed
packer/windows/conf/bin/bk-install-elastic-stack.ps1(set_always): Introduce helper.
1 parent 3baf058 commit b2a4633

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packer/windows/conf/bin/bk-install-elastic-stack.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ function set_unless_present() {
5959
declare -gx "${target}=${value}"
6060
fi
6161
}
62+
63+
function set_always() {
64+
local target=$1
65+
local value=$2
66+
67+
echo "export ${target}=\"${value}\""
68+
declare -gx "${target}=${value}"
69+
}
6270
'@
6371

6472
Add-Content -Path C:\buildkite-agent\cfn-env -Value @"

0 commit comments

Comments
 (0)