diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2009-05-19 10:46:42 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2009-05-19 10:46:42 +0200 |
commit | 53601c365527df9b1744cc74028de7fc458270f9 (patch) | |
tree | 43b790c17287651ee60f76e3bfd88c1527729f68 | |
parent | 0a87de713a7d78741345e54dbde3588671263c9a (diff) |
[Funcs] tests is '=', not '==' !!
-rw-r--r-- | 01_Functions.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh index 330ea73..647946e 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -80,7 +80,7 @@ get_git_branch () return fi - [ "$( git-ls-files . 2>&- | head -n1)" == "" -a \( ! -d .git -o "$(git-rev-parse --git-dir 2>&-)" != ".git" \) -a "$(git-rev-parse --is-inside-git-dir 2>&-)" != "true" ] && return + [ "$( git-ls-files . 2>&- | head -n1)" = "" -a \( ! -d .git -o "$(git-rev-parse --git-dir 2>&-)" != ".git" \) -a "$(git-rev-parse --is-inside-git-dir 2>&-)" != "true" ] && return GIT_DIR=$(git-rev-parse --git-dir) @@ -96,11 +96,11 @@ get_git_branch () if [ "$my_git_branch" != "$REBASE" ] then # If not on a working GIT branch, get the named current commit-ish inside parenthesis - [ "$my_git_branch" == "$REBASE(no branch)" ] &&\ + [ "$my_git_branch" = "$REBASE(no branch)" ] &&\ my_git_branch="($REBASE$(git-name-rev HEAD 2>&- | awk '{ print $2 }' | sed 's,^tags/,,;s,^remotes/,,'))" # If neither on a named commit-ish, show commit-id - if [ "$my_git_branch" == "(${REBASE}undefined)" ] + if [ "$my_git_branch" = "(${REBASE}undefined)" ] then my_git_branch="($REBASE$(git-rev-parse --verify HEAD 2>&-))" fi @@ -123,7 +123,7 @@ get_git_status () then return fi - if [ "$(git-rev-parse --is-inside-git-dir)" == "true" ] ; then + if [ "$(git-rev-parse --is-inside-git-dir)" = "true" ] ; then echo "$git_colors[managment_folder]" return fi |