comparison .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
comparison
equal deleted inserted replaced
319:c4f8ba83bce4 320:2b129f63d910
29 for b in $(echo $marks) ; do 29 for b in $(echo $marks) ; do
30 echo "About to rebase $b" 30 echo "About to rebase $b"
31 hg co --clean $b 31 hg co --clean $b
32 out=$(hg rebase -d "$1") 32 out=$(hg rebase -d "$1")
33 code=$? 33 code=$?
34 grep "nothing to rebase" <(echo $out) 34 echo $out | grep "nothing to rebase"
35 if [ $? = 0 ] ; then 35 if [ $? = 0 ] ; then
36 echo 'moving on' 36 echo 'moving on'
37 else 37 else
38 if [ $code -ne 0 ] ; then 38 if [ $code -ne 0 ] ; then
39 echo "rebase exited with status $out" 39 echo "rebase exited with status $out"