From 0a0defd3256ff5e29e3b4d129a04fb7546bc31ac Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 30 Sep 2023 18:41:57 +0100 Subject: simplify initialising variables in shell scripts Signed-off-by: Leah Rowe --- script/update/project/trees | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'script/update/project/trees') 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" } -- cgit v1.2.1