mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
lib.sh: reduce indentation in setvars
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -85,19 +85,16 @@ setvars()
|
||||
_setvars=""
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
|
||||
return 0
|
||||
else
|
||||
val="$1"
|
||||
|
||||
shift 1
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
printf "%s=\"%s\"\n" "$1" "$val"
|
||||
|
||||
shift 1
|
||||
done
|
||||
fi
|
||||
|
||||
val="$1"
|
||||
shift 1
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
printf "%s=\"%s\"\n" "$1" "$val"
|
||||
shift 1
|
||||
done
|
||||
}
|
||||
|
||||
# return 0 if project is single-tree, otherwise 1
|
||||
|
||||
Reference in New Issue
Block a user