We don't need return values
parent
9a134acd06
commit
8914d452d8
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue