From f796dc6014fe9cfc60f2adceb3925cee37477e24 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 21 Sep 2017 21:42:53 +0200 Subject: [PATCH] kpatch-build: cleanup quoting of $UBUNTU_ABI The double quotes are confusing as they don't quote $UBUNTU_ABI and thus have no real effect. As $UBUNTU_ABI is a number simply remove them and put $UBUNTU_ABI into the surrounding quotes. Found by shellcheck. --- kpatch-build/kpatch-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index f13f47e..2a12063 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -757,7 +757,7 @@ if [[ ! -z "$UBUNTU_KERNEL" ]]; then # UBUNTU: add UTS_UBUNTU_RELEASE_ABI to utsrelease.h after regenerating it UBUNTU_ABI="${ARCHVERSION#*-}" UBUNTU_ABI="${UBUNTU_ABI%-*}" - echo "#define UTS_UBUNTU_RELEASE_ABI "$UBUNTU_ABI"" >> "$SRCDIR"/include/generated/utsrelease.h + echo "#define UTS_UBUNTU_RELEASE_ABI $UBUNTU_ABI" >> "$SRCDIR"/include/generated/utsrelease.h fi cd "$TEMPDIR/output" || die