update/project/trees: rm "seen" in the right place

it must be done *after* setting cfgsdir

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-10-02 04:37:29 +01:00
parent a3b3196d6c
commit 1dd97470e7
1 changed files with 2 additions and 4 deletions

View File

@ -15,15 +15,13 @@ eval "$(setvars "" _target tree rev project cfgsdir)"
main()
{
x_ rm -f "${cfgsdir}"/*/seen
printf "Downloading %s and (if available) applying patches\n" \
${project}
printf "Downloading %s and applying patches\n" ${project}
[ -z "${1}" ] && err "project name not specified"
project="${1}"
cfgsdir="config/${project}"
[ -d "${cfgsdir}" ] || err "unsupported project name"
x_ rm -f "${cfgsdir}/"*/seen
shift 1
targets=$(listitems "${cfgsdir}")