summaryrefslogtreecommitdiffstats
path: root/git-base.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-base.sh')
-rwxr-xr-xgit-base.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-base.sh b/git-base.sh
index 951ec58..d2262d4 100755
--- a/git-base.sh
+++ b/git-base.sh
@@ -22,7 +22,7 @@ debug_print() {
}
dot_git() {
- if [[ in_current_dir && -n "$dot_git" ]]; then
+ if in_current_dir && [[ -n "$dot_git" ]]; then
# cache dot_git to save calls to rev-parse
echo $dot_git
elif [ -d .git ]; then