b18c53
#!/bin/sh
b18c53
b18c53
case "$1" in
b18c53
    -c | --interactive-color)
b18c53
        ! grep -qsi "^COLOR.*none" /etc/GREP_COLORS
b18c53
        ;;
b18c53
    *)
b18c53
        echo >&2 "Invalid / no option passed, so far only -c | --interactive-color is supported."
b18c53
        exit 1
b18c53
        ;;
b18c53
esac