summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2006-11-22 17:45:47 +0000
committerAron Griffis <agriffis@gentoo.org>2006-11-22 17:45:47 +0000
commite946df46dca6bc300591a8f19f6432343325bdbf (patch)
tree822152b255bdde3f6bedab34dc3aaaf0fcc96aaa /sys-kernel/genkernel
parentAdd metadata.xml (diff)
downloadgentoo-2-e946df46dca6bc300591a8f19f6432343325bdbf.tar.gz
gentoo-2-e946df46dca6bc300591a8f19f6432343325bdbf.tar.bz2
gentoo-2-e946df46dca6bc300591a8f19f6432343325bdbf.zip
Minor gotcha in genkernel.bash
(Portage version: 2.1.2_pre3-r1)
Diffstat (limited to 'sys-kernel/genkernel')
-rw-r--r--sys-kernel/genkernel/files/genkernel.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-kernel/genkernel/files/genkernel.bash b/sys-kernel/genkernel/files/genkernel.bash
index bb326c87d3a9..ed6b1c16604e 100644
--- a/sys-kernel/genkernel/files/genkernel.bash
+++ b/sys-kernel/genkernel/files/genkernel.bash
@@ -65,7 +65,7 @@ _genkernel()
# recreate COMPREPLY
if [[ $cur == "$lhs"* ]]; then
COMPREPLY=( "${args[@]}" )
- else
+ elif [[ ${#args[@]} -gt 0 ]]; then
COMPREPLY=( "${args[@]/#/$lhs}" )
fi
}