From e5b9d8a94576e11d7a19e7645328a9bccf90ce73 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 3 Feb 2013 10:46:55 -0500 Subject: bash-completion: detect_kver -> _detect_kver Signed-off-by: Dave Reisner --- bash-completion | 4 ++-- 1 file 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 -- cgit v1.2.3-24-g4f1b