mirror of https://github.com/dynup/kpatch
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.
This commit is contained in:
parent
60e5125cb0
commit
f796dc6014
|
@ -757,7 +757,7 @@ if [[ ! -z "$UBUNTU_KERNEL" ]]; then
|
||||||
# UBUNTU: add UTS_UBUNTU_RELEASE_ABI to utsrelease.h after regenerating it
|
# UBUNTU: add UTS_UBUNTU_RELEASE_ABI to utsrelease.h after regenerating it
|
||||||
UBUNTU_ABI="${ARCHVERSION#*-}"
|
UBUNTU_ABI="${ARCHVERSION#*-}"
|
||||||
UBUNTU_ABI="${UBUNTU_ABI%-*}"
|
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
|
fi
|
||||||
|
|
||||||
cd "$TEMPDIR/output" || die
|
cd "$TEMPDIR/output" || die
|
||||||
|
|
Loading…
Reference in New Issue