summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/is_unfree6
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 $?