diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-05-07 16:33:02 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-05-07 16:33:02 +0000 |
commit | 7769cb6e59218205ac38123a5cc0e0061bfe25ef (patch) | |
tree | e0a9a29e1673fae149b5a258ab073cce197ec5e0 | |
parent | Renoved "-symlink" from all module names and eliminated references in manpage... (diff) | |
download | eselect-7769cb6e59218205ac38123a5cc0e0061bfe25ef.tar.gz eselect-7769cb6e59218205ac38123a5cc0e0061bfe25ef.tar.bz2 eselect-7769cb6e59218205ac38123a5cc0e0061bfe25ef.zip |
fix bug in has
svn path=/trunk/; revision=32
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | libs/core.bash.in | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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 |