Skip to content

Commit f44e8a1

Browse files
committed
Changing the location of CaM sources
1 parent a6eb434 commit f44e8a1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

steps/zip.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ if [ -e "${zip}" ]; then
3636
exit
3737
fi
3838

39-
cam_repo_target_dir="${TARGET}/github/self/${name}"
39+
cam_repo_target_dir="${TARGET}/cam-sources"
4040

4141
if [ ! -d "${cam_repo_target_dir}" ]; then
4242
git clone --depth 1 https://github.com/yegor256/cam.git "${cam_repo_target_dir}"
43+
rm -rf "${cam_repo_target_dir}/.git"
4344
fi
4445

4546
if [ -e "${TARGET}/github" ]; then

tests/steps/test-zip.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ echo "👍🏻 A zip archive generated correctly"
3737
zip=${TARGET}/cam-$(date +%Y-%m-%d).zip
3838
"${LOCAL}/steps/zip.sh"
3939
list=$(unzip -l "${zip}")
40-
echo "${list}" | grep "cam-*/" > /dev/null
40+
echo "${list}" | grep "cam-sources/" > /dev/null
41+
echo "${list}" | grep --invert-match "cam-sources/.git" > /dev/null
4142
} > "${stdout}" 2>&1
42-
echo "👍🏻 A zip archive contains the CaM repository"
43+
echo "👍🏻 A zip archive contains the CaM repository (without .git)"
4344

4445
{
4546
mkdir -p "${TARGET}/measurements/a/b/baam.m.cloc"

0 commit comments

Comments
 (0)