1 2 3 4 5 6 7 8
#!/bin/bash # Checks if a package is on blacklist . /etc/libretools.conf blacklist="$XDG_CONFIG_HOME/libretools/blacklist.txt" egrep -q "^${1}:" "${blacklist}" exit $?