From 1dd97470e7b7ca6883268149b9a10b77258578b0 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 2 Oct 2023 04:37:29 +0100 Subject: update/project/trees: rm "seen" in the right place it must be done *after* setting cfgsdir Signed-off-by: Leah Rowe --- script/update/project/trees | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'script') diff --git a/script/update/project/trees b/script/update/project/trees index d5d631b6..221c288f 100755 --- a/script/update/project/trees +++ b/script/update/project/trees @@ -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}") -- cgit v1.2.1