From 8914d452d8f4f9f97218282165c53d40463adf64 Mon Sep 17 00:00:00 2001 From: Kovica Date: Fri, 12 Dec 2014 15:08:07 +0100 Subject: [PATCH] We don't need return values --- themes/base.theme.bash | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index 974b1c3f..b9f18960 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -128,20 +128,18 @@ function svn_prompt_vars { } function get_hg_root { - CURRENT_DIR=$(pwd) + local CURRENT_DIR=$(pwd) while [ "$CURRENT_DIR" != "/" ]; do echo $CURRENT_DIiR if [ -d "$CURRENT_DIR/.hg" ]; then echo "$CURRENT_DIR/.hg" - return 0 + return fi - + CURRENT_DIR=$(dirname $CURRENT_DIR) done - - return 1 } function hg_prompt_vars {