summaryrefslogtreecommitdiff
path: root/script/update/project/trees
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-30 18:41:57 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-30 19:09:25 +0100
commit0a0defd3256ff5e29e3b4d129a04fb7546bc31ac (patch)
tree479d686f0578b506dbe3f862300e73c090ed8bcc /script/update/project/trees
parent49b266eb4248f87d111e9babae86a873300afa03 (diff)
simplify initialising variables in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update/project/trees')
-rwxr-xr-xscript/update/project/trees7
1 files changed, 1 insertions, 6 deletions
diff --git a/script/update/project/trees b/script/update/project/trees
index 7038cfde..1214ab21 100755
--- a/script/update/project/trees
+++ b/script/update/project/trees
@@ -11,11 +11,7 @@ set -u -e
. "include/git.sh"
. "include/option.sh"
-_target=""
-tree=""
-rev=""
-project=""
-cfgsdir=""
+eval "$(setvars "" _target tree rev project cfgsdir)"
main()
{
@@ -40,7 +36,6 @@ main()
download_for_target "${x}" || \
err "${project}/${target}: cannot download source tree"
done
-
rm -f "${cfgsdir}"/*/seen || err_rm_seen "main 3"
}