diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-02-03 16:46:55 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-02-03 16:46:55 +0100 |
commit | e5b9d8a94576e11d7a19e7645328a9bccf90ce73 (patch) | |
tree | 94844216f8e45535ed655ddd119a4ba445c62a0d | |
parent | 0cc488d38ad99a2fa42b000bbc9d41dce91c57db (diff) | |
download | mkinitcpio-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-completion | 4 |
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 |