mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-12 22:42:54 +02:00
simplify initialising variables in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user