grep for name=ver

This commit is contained in:
josch 2014-06-23 13:55:14 +02:00
parent d7670774e6
commit a8f40902f4

View file

@ -54,7 +54,7 @@ elif [ "$#" -eq 2 ]; then
set -- $namever
name=$1
ver=$2
if grep --line-regexp $namever "${tmpdir}/bdselection.list"; then
if grep --line-regexp "${name}=${ver}" "${tmpdir}/bdselection.list"; then
dpkg -L $name > "${tmpdir}/${name}=${ver}"
fi
done