diff options
Diffstat (limited to 'config/sh/functions')
-rw-r--r-- | config/sh/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/sh/functions b/config/sh/functions index d6068e0..a662f2d 100644 --- a/config/sh/functions +++ b/config/sh/functions @@ -11,9 +11,9 @@ function cdu { local root root="$(git rev-parse --show-superproject-working-tree 2>/dev/null)" if [ -n "$root" ]; then - cd "$root" + cd "$root" || return else - cd "$(git rev-parse --show-toplevel)" + cd "$(git rev-parse --show-toplevel)" || return fi } |