mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
lib.sh: simplify setvars()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-4
@@ -53,12 +53,10 @@ setvars()
|
||||
fi
|
||||
val="$1"
|
||||
shift 1
|
||||
while true; do
|
||||
[ $# -lt 1 ] && break
|
||||
_setvars="$1=\"$val\"; $_setvars"
|
||||
while [ $# -gt 0 ]; do
|
||||
printf "%s=\"%s\"\n" "$1" "$val"
|
||||
shift 1
|
||||
done
|
||||
printf "%s\n" "${_setvars% }"
|
||||
}
|
||||
|
||||
setcfg()
|
||||
|
||||
Reference in New Issue
Block a user