mirror of
https://github.com/git-quick-stats/git-quick-stats.git
synced 2025-12-16 12:00:12 +01:00
Fixing OS X compatibility with merge feature
* OS X utilizes an older version of GNU Bash. As such, certain features such as lowercase expansion can fail. This commit removes the Bash 4.0 syntax in favor of a POSIX syntax with awk.
This commit is contained in:
@@ -23,9 +23,10 @@ _pathspec=${_GIT_PATHSPEC:-}
|
|||||||
# Exclusive shows only merge commits
|
# Exclusive shows only merge commits
|
||||||
# Enable shows regular commits together with normal commits
|
# Enable shows regular commits together with normal commits
|
||||||
_merges=${_GIT_MERGE_VIEW:-}
|
_merges=${_GIT_MERGE_VIEW:-}
|
||||||
if [[ "${_merges,,}" == "exclusive" ]]; then
|
_merges=$(echo "$_merges" | awk '{print tolower($0)}')
|
||||||
|
if [[ "${_merges}" == "exclusive" ]]; then
|
||||||
_merges="--merges"
|
_merges="--merges"
|
||||||
elif [[ "${_merges,,}" == "enable" ]]; then
|
elif [[ "${_merges}" == "enable" ]]; then
|
||||||
_merges=""
|
_merges=""
|
||||||
else
|
else
|
||||||
_merges="--no-merges"
|
_merges="--no-merges"
|
||||||
|
|||||||
Reference in New Issue
Block a user