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