• File: grepconf.sh
  • Full Path: /home/emgeemar/jaimaakhodiyar.co.uk/ALFA_DATA/alfasymlink/root/usr/libexec/grepconf.sh
  • File size: 253 bytes
  • MIME-type: text/x-shellscript
  • Charset: utf-8
#!/bin/sh

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