FreeBSD package repository: use . as separator when checking whether package already exists

This commit is contained in:
Hannes Mehnert 2022-02-28 15:09:25 +01:00
parent 078d48730d
commit 9cb0e2683c

View file

@ -78,7 +78,7 @@ if [ "$(basename "${FILENAME}" .pkg)" = "$(basename "${FILENAME}")" ]; then
exit 0
fi
if ls "${REPO}"/*/All/"${JOB}"-*-"${SHA}".pkg > /dev/null; then
if ls "${REPO}"/*/All/"${JOB}"-*."${SHA}".pkg > /dev/null; then
echo "Same hash already present, nothing to do"
exit 0
fi