summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-02-03 16:46:55 +0100
committerDave Reisner <dreisner@archlinux.org>2013-02-03 16:46:55 +0100
commite5b9d8a94576e11d7a19e7645328a9bccf90ce73 (patch)
tree94844216f8e45535ed655ddd119a4ba445c62a0d
parent0cc488d38ad99a2fa42b000bbc9d41dce91c57db (diff)
downloadmkinitcpio-e5b9d8a94576e11d7a19e7645328a9bccf90ce73.tar.gz
mkinitcpio-e5b9d8a94576e11d7a19e7645328a9bccf90ce73.tar.xz
bash-completion: detect_kver -> _detect_kver
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--bash-completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash-completion b/bash-completion
index 0108863..559b2f3 100644
--- a/bash-completion
+++ b/bash-completion
@@ -1,6 +1,6 @@
#!/bin/bash
-detect_kver() {
+_detect_kver() {
local kver_validator='^[[:digit:]]+(\.[[:digit:]]+)+'
offset=$(hexdump -s 526 -n 2 -e '"%0d"' "$1" 2>/dev/null) || return 1
read kver _ < \
@@ -29,7 +29,7 @@ _find_kernel_versions() {
for f in /boot/*; do
# only match regular files which pass validation
- if [[ ! -L $f && -f $f ]] && kver=$(detect_kver "$f"); then
+ if [[ ! -L $f && -f $f ]] && kver=$(_detect_kver "$f"); then
matches+=("$f")
fi
done