diff options
-rwxr-xr-x | src/is_unfree | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/is_unfree b/src/is_unfree index c2a37c9..64fc322 100755 --- a/src/is_unfree +++ b/src/is_unfree @@ -1,8 +1,8 @@ #!/bin/bash # Checks if a package is on blacklist -. /etc/libretools.conf +. /usr/share/libretools/blacklist.sh -blacklist="$XDG_CONFIG_HOME/libretools/blacklist.txt" -egrep -q "^${1}:" "${blacklist}" +line=$(blacklist-lookup "$1") +[[ -n $line ]] exit $? |