echo cat
else
if [ "$RPM_SCRIPTVERBOSITY" -lt 2 ]; then
- echo "$BANNERCMD -s -M $1"
- else
echo "$BANNERCMD -M $1"
+ else
+ echo "$BANNERCMD -s -M $1"
fi
fi
}
testrm()
{
- [ "$RPM_USERDEL" != yes ] && return 1
+ [ "$RPM_USERDEL" != yes ] || [ ! -x /bin/rpm ] && return 1
[ -z "$1" ] && return 2
rpm -q --whatprovides "${MODE}($1)" >/dev/null 2>&1
# no package Provides it (strange)