commit:     cb12846c46545f39ddcdc3b0d08dc390670c271f
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 19 06:54:15 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Dec 19 06:54:15 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=cb12846c

Use consistent style with a single equals sign for tests.

---
 ctags.eselect | 6 +++---
 emacs.eselect | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ctags.eselect b/ctags.eselect
index fd6f9b7..5325536 100644
--- a/ctags.eselect
+++ b/ctags.eselect
@@ -192,7 +192,7 @@ do_update() {
        [[ $# -gt 2 ]] && die -q "Too many parameters"
        test_for_root
 
-       if ! [[ $1 == *if*unset \
+       if ! [[ $1 = *if*unset \
                && -L ${EROOT}/usr/bin/${CTAGS} && -e ${EROOT}/usr/bin/${CTAGS} 
]]
        then
                local current=""
@@ -217,9 +217,9 @@ do_update() {
                local i target targets=( $(find_targets) )
                if [[ ${#targets[@]} -gt 0 && ${current} != nolink ]]; then
                        target=${targets[0]}
-                       [[ ${current} == ${CTAGS}-*emacs* ]] && 
current=${CTAGS}-*emacs*
+                       [[ ${current} = ${CTAGS}-*emacs* ]] && 
current=${CTAGS}-*emacs*
                        for i in ${targets[@]}; do
-                               [[ ${i} == ${current} ]] && target=${i}
+                               [[ ${i} = ${current} ]] && target=${i}
                        done
                        set_symlinks "${target}" || die -q "Couldn't set a new 
symlink"
                fi

diff --git a/emacs.eselect b/emacs.eselect
index 4b3a8e9..7b63e59 100644
--- a/emacs.eselect
+++ b/emacs.eselect
@@ -248,7 +248,7 @@ do_update() {
        test_for_root
 
        if [[ -L ${EROOT}/usr/bin/emacs ]]; then
-               if [[ $1 == *if*unset && -e ${EROOT}/usr/bin/emacs ]]; then
+               if [[ $1 = *if*unset && -e ${EROOT}/usr/bin/emacs ]]; then
                        do_action ctags update ifunset
                        return
                fi

Reply via email to