Skip to content

Commit 45804ef

Browse files
committed
Rename variable for clarity
1 parent 6c6ea52 commit 45804ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/build-stemcell-automation-zip.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22
set -eu -o pipefail
33

4-
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
5-
STEMCELL_AUTOMATION_PS1=$(ls "${ROOT_DIR}"/stembuild/stemcell-automation/*ps1 | grep -iv Test)
4+
REPO_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
5+
STEMCELL_AUTOMATION_PS1=$(ls "${REPO_ROOT}"/stembuild/stemcell-automation/*ps1 | grep -iv Test)
66

77
: "${OPENSSH_ZIP?"Please see README.md on where to obtain this."}"
88
: "${BOSH_PSMODULES_ZIP?"Please see README.md on where to obtain this."}"
@@ -17,8 +17,8 @@ cp "${AGENT_ZIP}" "${TEMP_DIR}/agent.zip"
1717
cp "${DEPS_JSON}" "${TEMP_DIR}/deps.json"
1818
cp "${STEMCELL_AUTOMATION_PS1}" "${TEMP_DIR}"
1919

20-
rm -f "${ROOT_DIR}/stembuild/assets/StemcellAutomation.zip"
20+
rm -f "${REPO_ROOT}/stembuild/assets/StemcellAutomation.zip"
2121

22-
zip -rj "${ROOT_DIR}/stembuild/assets/StemcellAutomation.zip" "${TEMP_DIR}"
22+
zip -rj "${REPO_ROOT}/stembuild/assets/StemcellAutomation.zip" "${TEMP_DIR}"
2323

2424
rm -r "${TEMP_DIR}"

0 commit comments

Comments
 (0)