Fix no repofile
Helps to prevent both infinite loops and pkgrc fom being overwritten due to missing repo file. See: Issue #79 note_251505334
This change will also be part of the "Add ppa2pup awk" branch, which currently has an open merge request. This merge request if offered in case we want to break the "Add ppa2pup awk" into separate pieces.
The cat command seems to be required here because using grep -m1 with multiple files seems to produce one match per file, when what we want is only the first match out of all the files.
Related Future Work
1 - Prompt user for repo info if grep can't find the filename
2 - Use repo url when searching to see if a repo exists in sources-all
Tested with the following sources.list file
#https://wiki.debian.org/DebianRepository/Unofficial?action=show&redirect=UnofficialRepositories
#http://deb.opera.com/manual.html
deb https://deb.opera.com/opera-stable/ stable non-free
named repo stable-non-free-opera
Edited by s243a