summaryrefslogtreecommitdiffstats
path: root/git-base.sh
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-02-17 10:43:56 +0000
committerMichael Allen <michael@michaelallen.io>2015-02-17 10:43:56 +0000
commit17f351cb3d9b577b99c641c3e01f2a504fdeb1e3 (patch)
tree12b481dfebf3c9fc4d201c51a14679fa8f5b3ff9 /git-base.sh
parent17279c846cd8c12fa2e5db0b88914d58dbb47e35 (diff)
downloadgit-sonar-17f351cb3d9b577b99c641c3e01f2a504fdeb1e3.tar.gz
git-sonar-17f351cb3d9b577b99c641c3e01f2a504fdeb1e3.zip
apparent syntax error
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