mirror of
https://github.com/dynup/kpatch
synced 2025-01-27 07:12:53 +00:00
kpatch: pass basename of argument to unload_module
This commit is contained in:
parent
f5189d815f
commit
5e1062cf29
@ -165,7 +165,7 @@ case "$1" in
|
||||
"unload")
|
||||
[[ "$#" -ne 2 ]] && usage
|
||||
[[ $2 =~ ^- ]] && usage
|
||||
unload_module "$2" || die "failed to unload module $2"
|
||||
unload_module "$(basename $2)" || die "failed to unload module $2"
|
||||
;;
|
||||
|
||||
"install")
|
||||
|
Loading…
Reference in New Issue
Block a user