From cb12846c46545f39ddcdc3b0d08dc390670c271f Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Fri, 19 Dec 2014 07:54:15 +0100 Subject: 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 -- cgit v1.2.3-65-gdbad