diff .shell.d/50.hg_functions.sh @ 320:2b129f63d910

hg-rebase-all: remove bashism
author Augie Fackler <raf@durin42.com>
date Tue, 16 Jul 2013 13:39:31 -0400
parents 74990ae54bd2
children fc89d315942f
line wrap: on
line diff
--- a/.shell.d/50.hg_functions.sh
+++ b/.shell.d/50.hg_functions.sh
@@ -31,7 +31,7 @@ function hg_rebase_all () {
         hg co --clean $b
         out=$(hg rebase -d "$1")
         code=$?
-        grep "nothing to rebase" <(echo $out)
+        echo $out | grep "nothing to rebase"
         if [ $? = 0 ] ; then
             echo 'moving on'
         else