summaryrefslogtreecommitdiff
path: root/script/update
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-02 04:37:29 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-02 04:37:29 +0100
commit1dd97470e7b7ca6883268149b9a10b77258578b0 (patch)
tree6626475022e36bd3c7573f21c207c552a184bcff /script/update
parenta3b3196d6c93fc0360eb8156318ed73bad56bdb6 (diff)
update/project/trees: rm "seen" in the right place
it must be done *after* setting cfgsdir Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update')
-rwxr-xr-xscript/update/project/trees6
1 files changed, 2 insertions, 4 deletions
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}")