Skip to content

Commit 26a9c50

Browse files
committed
Include renamed powershell files in automation zip
In changing the stemcell automation scripts from `.ps1` -> `.psm1` the zip file assembly script was broken because it did not find the newly renamed file resulting in scripts being missing from the resulting archive.
1 parent 58b9a1c commit 26a9c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/build-stemcell-automation-zip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cp "${OPENSSH_ZIP}" "${TEMP_DIR}/OpenSSH-Win64.zip"
1414
cp "${BOSH_PSMODULES_ZIP}" "${TEMP_DIR}/bosh-psmodules.zip"
1515
cp "${AGENT_ZIP}" "${TEMP_DIR}/agent.zip"
1616
cp "${DEPS_JSON}" "${TEMP_DIR}/deps.json"
17-
for file in "${REPO_ROOT}"/stembuild/stemcell-automation/*ps1; do
17+
for file in "${REPO_ROOT}"/stembuild/stemcell-automation/*.ps*; do
1818
if ! [[ "${file}" =~ .*\.Tests\.ps1 ]]; then
1919
cp "${file}" "${TEMP_DIR}"
2020
fi

0 commit comments

Comments
 (0)