mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
lib.sh: fix bad eval writing version/versiondate
x_ cannot be used, where output is redirected to a file; only the convention piping can be used, for errors. relying on x_ in these cases will cause unpredictable bugs. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ versiondate_="$versiondate"
|
||||
--pretty='%ct' HEAD)" || versiondate="$versiondate_"
|
||||
for p in version versiondate; do
|
||||
chkvars "$p"
|
||||
eval "x_ printf \"%s\\n\" \"\$$p\" > .$p"
|
||||
eval "printf \"%s\\n\" \"\$$p\" > .$p || $err \"can't save $p\""
|
||||
done
|
||||
relname="$projectname-$version"
|
||||
export LOCALVERSION="-$projectname-${version%%-*}"
|
||||
|
||||
Reference in New Issue
Block a user