From bc87b5f67e49c8e51e58a68e0651fd6ed176bb7d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 27 Dec 2023 17:26:37 +0000 Subject: lbmk scripts: general code cleanup Signed-off-by: Leah Rowe --- include/err.sh | 1 - include/option.sh | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/err.sh b/include/err.sh index 3c596b17..cab81d02 100755 --- a/include/err.sh +++ b/include/err.sh @@ -53,7 +53,6 @@ check_project() p_="x_ printf \"%s\\n\" \"\$$p\" > $p" eval "x$p_ || $p_" done - export LOCALVERSION="-${projectname}-${version%%-*}" } diff --git a/include/option.sh b/include/option.sh index 31411423..8367d447 100755 --- a/include/option.sh +++ b/include/option.sh @@ -46,9 +46,9 @@ scan_config() set ${line} 1>/dev/null 2>/dev/null || : if [ "${1%:}" = "depend" ]; then depend="${depend} ${2}" - continue + else + eval "${1%:}=\"${2}\"" fi - eval "${1%:}=\"${2}\"" done << EOF $(eval "awk '${awkstr}' \"${revfile}\"") EOF -- cgit v1.2.1