Skip to content

Commit

Permalink
theme base shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Sep 30, 2021
1 parent 0818710 commit 90e0f5a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions themes/base.theme.bash
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,8 @@ function svn_prompt_vars {
function get_hg_root {
local CURRENT_DIR="${PWD}"

while [ "${CURRENT_DIR:-/}" != "/" ]
do
if [ -d "$CURRENT_DIR/.hg" ]
then
while [ "${CURRENT_DIR:-/}" != "/" ]; do
if [ -d "$CURRENT_DIR/.hg" ]; then
echo "$CURRENT_DIR/.hg"
return
fi
Expand Down

0 comments on commit 90e0f5a

Please sign in to comment.