8
if [ -z "$sources_list" ]; then
9
echo "Must provide sources list location, e.g. /etc/apt/sources.list"
13
if [ -z "$repositories" ]; then
14
echo "Must provide list of repositories to check for, e.g. 'deb http://gb.archive.ubuntu.com/ubuntu/ precise multiverse, deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates multiverse'"
19
for repository in $repositories; do
20
if grep -q "$repository" "$sources_list"; then
21
echo "$repository found in $sources_list"
23
echo "$repository not found in $sources_list"