simplify initialising variables in shell scripts

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-09-30 18:41:57 +01:00
parent 49b266eb42
commit 0a0defd325
10 changed files with 51 additions and 122 deletions
+1 -6
View File
@@ -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"
}