adblock: fix restrictive sort selection

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken
2020-12-20 17:28:00 +01:00
parent a9076b0327
commit e3db5016a1
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -1653,7 +1653,11 @@ fi
adb_sort="$(command -v gnu-sort)"
if [ -z "${adb_sort}" ]
then
f_log "err" "gnu-sort not found"
adb_sort="$(command -v sort)"
if [ -z "$("${adb_sort}" --help 2>/dev/null | grep -Fo -m1 "coreutils")" ]
then
f_log "err" "coreutils sort not found"
fi
fi
# version information