# HG changeset patch # User Augie Fackler # Date 1354640883 21600 # Node ID d9cc862e6308cd407146b1b5aba14a98ae842f91 # Parent 142fb39e4e550ae3b25ec3e280499abe218c3e7c hg_rebase_all: fix exit status check diff --git a/.shell.d/50.hg_functions.sh b/.shell.d/50.hg_functions.sh --- a/.shell.d/50.hg_functions.sh +++ b/.shell.d/50.hg_functions.sh @@ -31,7 +31,7 @@ function hg_rebase_all () { if [ $? = 0 ] ; then echo 'moving on' else - if [ $out -ne 0 ] ; then + if [ $code -ne 0 ] ; then echo "rebase exited with status $out" return 3 fi