summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-12-19 07:54:15 +0100
committerUlrich Müller <ulm@gentoo.org>2014-12-19 07:54:15 +0100
commitcb12846c46545f39ddcdc3b0d08dc390670c271f (patch)
tree836d5f2d748b9c73277a898c8011c3d6250a5140
parentUpdate example in ctags man page. (diff)
downloademacs-tools-cb12846c46545f39ddcdc3b0d08dc390670c271f.tar.gz
emacs-tools-cb12846c46545f39ddcdc3b0d08dc390670c271f.tar.bz2
emacs-tools-cb12846c46545f39ddcdc3b0d08dc390670c271f.zip
Use consistent style with a single equals sign for tests.
-rw-r--r--ctags.eselect6
-rw-r--r--emacs.eselect2
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