[orca] Fix for bgo#583274 - portability for orca script



commit d5c5473eb016eba02cce64ed06926fd5e1bcfcb9
Author: Willie Walker <william walker sun com>
Date:   Thu Jun 11 15:13:25 2009 -0400

    Fix for bgo#583274 - portability for orca script
    
    This makes the Orca script a sh script instead of a bash script

 src/orca/orca.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/orca.in b/src/orca/orca.in
index 4ae89d6..97f6e1c 100644
--- a/src/orca/orca.in
+++ b/src/orca/orca.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Orca
 #
@@ -137,7 +137,7 @@ if [ "x$LOGNAME" != "xgdm" ] ; then
     fi
 fi
 
-if [ `grep -c "\-q" <<< $ARGS` -gt 0 ] ; then
+if [ `echo $ARGS | grep -c "\-q"` -gt 0 ] ; then
     # If the user has done -q or --quit, that means to tell any
     # existing orca process to quit.  So, we just do a cleanup.
     #
@@ -154,7 +154,7 @@ else
     if [ "x$ARGS" = "x" ] ; then
         CLEANUP=1
     else
-        CLEANUP=`egrep -c "\-s|\-t|\-n|\-u|\-e|\-d" <<< $ARGS`
+        CLEANUP=`echo $ARGS | egrep -c "\-s|\-t|\-n|\-u|\-e|\-d"`
     fi
 
     # Clean up before running orca to get anything that might



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