From eb9e5d2d5d4cac5d07ab1b8160bcf929020927e3 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 13 Apr 2025 03:57:04 +0100 Subject: 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 --- include/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/lib.sh') diff --git a/include/lib.sh b/include/lib.sh index cb42c3d4..99401259 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -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%%-*}" -- cgit v1.2.1