commit:     2f855273fc88de81cf3ae1208549c58c9bc91ba5
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 29 13:41:41 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Jul 29 20:02:17 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=2f855273

gen_determineargs.sh: determine_KV(): Quote $KERNEL_OUTPUTDIR

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gen_determineargs.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gen_determineargs.sh b/gen_determineargs.sh
index f4b3cf7..b64cdba 100755
--- a/gen_determineargs.sh
+++ b/gen_determineargs.sh
@@ -44,10 +44,10 @@ determine_KV() {
                [ -f "${KERNEL_OUTPUTDIR}/include/linux/utsrelease.h" ] && \
                        
VERSION_SOURCE="${KERNEL_OUTPUTDIR}/include/linux/utsrelease.h"
                # Handle new-style releases where version.h doesn't have 
UTS_RELEASE
-               if [ -f ${KERNEL_OUTPUTDIR}/include/config/kernel.release ]
+               if [ -f "${KERNEL_OUTPUTDIR}/include/config/kernel.release" ]
                then
                        print_info 3 "Using 
'${KERNEL_OUTPUTDIR}/include/config/kernel.release' to extract LOCALVERSION ..."
-                       UTS_RELEASE=$(cat 
${KERNEL_OUTPUTDIR}/include/config/kernel.release)
+                       UTS_RELEASE=$(cat 
"${KERNEL_OUTPUTDIR}/include/config/kernel.release")
                        LOV=$(echo ${UTS_RELEASE}|sed -e 
"s/${VER}.${PAT}.${SUB}${EXV}//")
                        KV=${VER}.${PAT}.${SUB}${EXV}${LOV}
                elif [ -n "${VERSION_SOURCE}" ]

Reply via email to