Skip to content

Commit aa9b427

Browse files
committed
Loop through PS1 files instead of globbing
Signed-off-by: Brian Upton <[email protected]>
1 parent 45804ef commit aa9b427

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/build-stemcell-automation-zip.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
set -eu -o pipefail
33

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

76
: "${OPENSSH_ZIP?"Please see README.md on where to obtain this."}"
87
: "${BOSH_PSMODULES_ZIP?"Please see README.md on where to obtain this."}"
@@ -15,7 +14,9 @@ cp "${OPENSSH_ZIP}" "${TEMP_DIR}/OpenSSH-Win64.zip"
1514
cp "${BOSH_PSMODULES_ZIP}" "${TEMP_DIR}/bosh-psmodules.zip"
1615
cp "${AGENT_ZIP}" "${TEMP_DIR}/agent.zip"
1716
cp "${DEPS_JSON}" "${TEMP_DIR}/deps.json"
18-
cp "${STEMCELL_AUTOMATION_PS1}" "${TEMP_DIR}"
17+
for file in $(ls "${REPO_ROOT}"/stembuild/stemcell-automation/*ps1 | grep -iv Test); do
18+
cp "${file}" "${TEMP_DIR}"
19+
done
1920

2021
rm -f "${REPO_ROOT}/stembuild/assets/StemcellAutomation.zip"
2122

0 commit comments

Comments
 (0)