fix: repo remove folder
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2023-04-09 10:07:33 +02:00
parent db9b25cb43
commit 8852c60c78

View file

@ -71,6 +71,7 @@ while read -r p; do
done <aur.txt
del=$(git --no-pager diff ${CI_PREV_COMMIT_SHA}..HEAD aur.txt | tail -n +4 | grep -E '^-' | cut -c2-)
del+=$(git --no-pager diff --name-status ${CI_PREV_COMMIT_SHA}..HEAD | grep -Po 'D\s+(\K.*)(?=/PKGBUILD)')
if [[ -n "${del}" ]]; then
# shellcheck disable=SC2086
repo-remove -s /repo/nyyu.db.tar.zst ${del} || true