From 45700cc936d80402b1fcaacdab4878ebfb1582df Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Nov 21 2011 02:23:36 +0000 Subject: get the script name right --- diff --git a/utils/cleanp_vm.sh b/utils/cleanp_vm.sh index 1e59544..98d07ac 100644 --- a/utils/cleanp_vm.sh +++ b/utils/cleanp_vm.sh @@ -6,7 +6,7 @@ rm /tmp/yum-cleanup for f in `rpm -qa`; do - pn=$(rpm --qf "%{name}" -q $f) + pn=$(rpm --qf "|%{name}|" -q $f) if [ `grep $pn $1 | wc -l ` -lt 1 ] ; then echo 'erase ' $f >> /tmp/yum-cleanup fi