Skip to content

Commit d05a741

Browse files
committed
shellcheck fixes
1 parent aa9b427 commit d05a741

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/build-stemcell-automation-zip.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ 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 $(ls "${REPO_ROOT}"/stembuild/stemcell-automation/*ps1 | grep -iv Test); do
18-
cp "${file}" "${TEMP_DIR}"
17+
for file in ~/workspace/stembuild/stemcell-automation/*ps1; do
18+
if ! [[ "${file}" =~ .*\.Tests\.ps1 ]]; then
19+
cp "${file}" "${TEMP_DIR}"
20+
fi
1921
done
20-
2122
rm -f "${REPO_ROOT}/stembuild/assets/StemcellAutomation.zip"
2223

2324
zip -rj "${REPO_ROOT}/stembuild/assets/StemcellAutomation.zip" "${TEMP_DIR}"

0 commit comments

Comments
 (0)