From 6dc6d78627cdd711a10bf6c1008fe584a19dde25 Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Wed, 21 May 2014 10:52:59 -0500 Subject: [PATCH] kpatch: uninstall should only look in user-installed dir --- kpatch/kpatch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch/kpatch b/kpatch/kpatch index 3dad645..3b78b9f 100755 --- a/kpatch/kpatch +++ b/kpatch/kpatch @@ -197,7 +197,7 @@ case "$1" in "uninstall") [[ "$#" -ne 2 ]] && usage PATCH="$2" - find_module "$PATCH" || die "$PATCH is not installed" + [[ ! -e $USERDIR/$PATCH ]] && die "$PATCH is not installed" echo "uninstalling $PATCH from $USERDIR" rm -f "$USERDIR/$(basename $MODULE)" || die "failed to uninstall patch $PATCH"