We don't need return values

pull/378/head
Kovica 2014-12-12 15:08:07 +01:00
parent 9a134acd06
commit 8914d452d8
1 changed files with 3 additions and 5 deletions

View File

@ -128,20 +128,18 @@ function svn_prompt_vars {
} }
function get_hg_root { function get_hg_root {
CURRENT_DIR=$(pwd) local CURRENT_DIR=$(pwd)
while [ "$CURRENT_DIR" != "/" ]; do while [ "$CURRENT_DIR" != "/" ]; do
echo $CURRENT_DIiR echo $CURRENT_DIiR
if [ -d "$CURRENT_DIR/.hg" ]; then if [ -d "$CURRENT_DIR/.hg" ]; then
echo "$CURRENT_DIR/.hg" echo "$CURRENT_DIR/.hg"
return 0 return
fi fi
CURRENT_DIR=$(dirname $CURRENT_DIR) CURRENT_DIR=$(dirname $CURRENT_DIR)
done done
return 1
} }
function hg_prompt_vars { function hg_prompt_vars {