diff options
author | crf204 <crf204@gmail.com> | 2016-12-04 18:53:32 -0500 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2017-01-08 20:41:58 +0000 |
commit | 2ac25e3d1047cdf19f15bc894ff39449b83d65d4 (patch) | |
tree | 0a9a377ec3cca884263d6186244c09bfb98bad9a | |
parent | fe17db8cda09f40768ed35f462b787e02db5e674 (diff) | |
download | git-sonar-2ac25e3d1047cdf19f15bc894ff39449b83d65d4.tar.gz git-sonar-2ac25e3d1047cdf19f15bc894ff39449b83d65d4.zip |
fix for basename: extra operand warning
-rwxr-xr-x | radar-base.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radar-base.sh b/radar-base.sh index a9e3a7f..61503fd 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -537,7 +537,7 @@ stashed_status() { } is_cwd_a_dot_git_directory() { - [[ "$(basename $PWD)" == ".git" ]]; return $? + [[ "$(basename "$PWD")" == ".git" ]]; return $? } stash_status() { |