mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 08:40:14 +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
|
fi
|
||||||
val="$1"
|
val="$1"
|
||||||
shift 1
|
shift 1
|
||||||
while true; do
|
while [ $# -gt 0 ]; do
|
||||||
[ $# -lt 1 ] && break
|
printf "%s=\"%s\"\n" "$1" "$val"
|
||||||
_setvars="$1=\"$val\"; $_setvars"
|
|
||||||
shift 1
|
shift 1
|
||||||
done
|
done
|
||||||
printf "%s\n" "${_setvars% }"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setcfg()
|
setcfg()
|
||||||
|
|||||||
Reference in New Issue
Block a user