X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=blobdiff_plain;f=usr_sbin%2Fblacklist;fp=usr_sbin%2Fblacklist;h=396dc08a261bdce7faf8dec2b4a150321f8a2871;hp=8446a411c0e5a1701f047a0da8f56b82e951a28c;hb=54e2502b301f2220e49e619b263be0e015d807cc;hpb=29bfc533ade39978f73afaecf01062151e43e267 diff --git a/usr_sbin/blacklist b/usr_sbin/blacklist index 8446a41..396dc08 100755 --- a/usr_sbin/blacklist +++ b/usr_sbin/blacklist @@ -6,8 +6,9 @@ # License: This file is licensed under the GPL v2. ################################################################################ -PN="$(basename $0)" +PN="$(basename "$0")" [ -n "$MODPROBEFILE" ] || MODPROBEFILE=/etc/modprobe.d/grml.conf +# shellcheck disable=SC1091 [ -r /etc/grml/lsb-functions ] && . /etc/grml/lsb-functions if [ -z "$1" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then @@ -17,7 +18,7 @@ if [ -z "$1" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then fi if [ "$(id -ru)" != "0" ] ; then - echo Error: become root before starting $0 >& 2 + echo "Error: become root before starting $0" >& 2 exit 100 fi