summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.eselect')
-rw-r--r--emacs.eselect10
1 files changed, 5 insertions, 5 deletions
diff --git a/emacs.eselect b/emacs.eselect
index f3880ed..7c5139c 100644
--- a/emacs.eselect
+++ b/emacs.eselect
@@ -173,7 +173,7 @@ describe_show() {
}
do_show() {
- [[ $# -gt 0 ]] && die -q "Too many parameters"
+ [[ $# -eq 0 ]] || die -q "Too many parameters"
write_list_start "Current target of Emacs symlink:"
if [[ -L ${EROOT}/usr/bin/emacs && -e ${EROOT}/usr/bin/emacs ]]; then
@@ -199,7 +199,7 @@ describe_list() {
}
do_list() {
- [[ $# -gt 0 ]] && die -q "Too many parameters"
+ [[ $# -eq 0 ]] || die -q "Too many parameters"
local i targets
targets=( $(find_targets) )
@@ -234,8 +234,8 @@ describe_set_parameters() {
}
do_set() {
- [[ -z $1 ]] && die -q "You didn't tell me what to set the symlink to"
- [[ $# -gt 1 ]] && die -q "Too many parameters"
+ [[ -n $1 ]] || die -q "You didn't tell me what to set the symlink to"
+ [[ $# -le 1 ]] || die -q "Too many parameters"
test_for_root
if [[ -e ${EROOT}/usr/bin/emacs && ! -L ${EROOT}/usr/bin/emacs ]]; then
@@ -260,7 +260,7 @@ describe_update_options() {
do_update() {
[[ -z $1 || $1 = ifunset || $1 = --if-unset ]] || die -q "Usage error"
- [[ $# -gt 1 ]] && die -q "Too many parameters"
+ [[ $# -le 1 ]] || die -q "Too many parameters"
test_for_root
if [[ -L ${EROOT}/usr/bin/emacs ]]; then