We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d7558f commit 44454dbCopy full SHA for 44454db
src/scripts/tools/ppa.sh
@@ -246,7 +246,11 @@ check_lists() {
246
match_file=$(grep -Elr "$primary" "$list_dir" 2>/dev/null | head -n 1)
247
fi
248
if [ -z "$match_file" ] && [ -n "$secondary" ]; then
249
- match_file=$(grep -Elr "$secondary" "$list_dir" 2>/dev/null | head -n 1)
+ local candidate
250
+ candidate=$(grep -Elr "$secondary" "$list_dir" 2>/dev/null | head -n 1)
251
+ if [ -n "$candidate" ] && { [ -z "$primary" ] || grep -Eq "$primary" "$candidate"; }; then
252
+ match_file="$candidate"
253
+ fi
254
255
if [ -n "$match_file" ]; then
256
local list_count
0 commit comments