aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-05-07 16:33:02 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-05-07 16:33:02 +0000
commit7769cb6e59218205ac38123a5cc0e0061bfe25ef (patch)
treee0a9a29e1673fae149b5a258ab073cce197ec5e0
parentRenoved "-symlink" from all module names and eliminated references in manpage... (diff)
downloadeselect-7769cb6e59218205ac38123a5cc0e0061bfe25ef.tar.gz
eselect-7769cb6e59218205ac38123a5cc0e0061bfe25ef.tar.bz2
eselect-7769cb6e59218205ac38123a5cc0e0061bfe25ef.zip
fix bug in has
svn path=/trunk/; revision=32
-rw-r--r--ChangeLog3
-rw-r--r--libs/core.bash.in2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5670742..bcb540b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
ChangeLog for eclectic
+2005-05-07 Ciaran McCreesh <ciaranm@gentoo.org>
+ * libs/core.bash.in: Fix bug in has so that it actually works.
+
2005-05-07 Aaron Walker <ka0ttic@gentoo.org>
* modules/profile-symlink.eclectic: Fix sed to use current
diff --git a/libs/core.bash.in b/libs/core.bash.in
index 9077565..e4b46e2 100644
--- a/libs/core.bash.in
+++ b/libs/core.bash.in
@@ -104,7 +104,7 @@ do_action() {
# has varname item
has() {
- local var=${!1} item
+ local var=${1} item
for item in ${var} ; do
[[ ${item} == ${2} ]] && return 0
done