Mercurial > dotfiles
comparison .shell.d/50.hg_functions.sh @ 305:d9cc862e6308
hg_rebase_all: fix exit status check
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 04 Dec 2012 11:08:03 -0600 |
parents | 142fb39e4e55 |
children | 74990ae54bd2 |
comparison
equal
deleted
inserted
replaced
291:142fb39e4e55 | 305:d9cc862e6308 |
---|---|
29 code=$? | 29 code=$? |
30 grep "nothing to rebase" <(echo $out) | 30 grep "nothing to rebase" <(echo $out) |
31 if [ $? = 0 ] ; then | 31 if [ $? = 0 ] ; then |
32 echo 'moving on' | 32 echo 'moving on' |
33 else | 33 else |
34 if [ $out -ne 0 ] ; then | 34 if [ $code -ne 0 ] ; then |
35 echo "rebase exited with status $out" | 35 echo "rebase exited with status $out" |
36 return 3 | 36 return 3 |
37 fi | 37 fi |
38 fi | 38 fi |
39 done | 39 done |