[gdm] Stop hardcoding path to grep



commit e05c2e3b921c120f4c67d3bda228af43884a5bf1
Author: Josselin Mouette <joss debian org>
Date:   Wed May 18 20:43:56 2011 +0200

    Stop hardcoding path to grep
    
    /usr/bin/grep is correct on Solaris but not on Linux/sparc
    https://bugzilla.gnome.org/show_bug.cgi?id=649415

 data/Init.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/Init.in b/data/Init.in
index dca63a2..ec6fd39 100644
--- a/data/Init.in
+++ b/data/Init.in
@@ -48,7 +48,7 @@ if [ "x$XMODMAP" != "x" ] ; then
   UNAME=`gdmwhich uname`
   PROCESSOR=`$UNAME -p`
   if [ "x$PROCESSOR" = "xsparc" ]; then
-    if $XMODMAP | /usr/bin/grep mod4 | /usr/bin/grep Alt > /dev/null 2>/dev/null
+    if $XMODMAP | grep mod4 | grep Alt > /dev/null 2>/dev/null
     then
       $XMODMAP -e "clear Mod1" \
                -e "clear Mod4" \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]