kpatch/kpatch: silence shellcheck warning

Hiding the return value isn't an issue here, but lets keep shellcheck
happy.
This commit is contained in:
Simon Ruderich 2017-10-13 08:53:06 +02:00
parent 554e8839e3
commit 73cf473a21
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ load_module () {
fi
fi
local modname="$(get_module_name "$module")"
local modname
modname="$(get_module_name "$module")"
local moddir="$SYSFS/$modname"
if [[ -d "$moddir" ]] ; then
if [[ "$(cat "${moddir}/enabled")" -eq 0 ]]; then