]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - bash-completion/addpart
include/c: use __has_attribute
[thirdparty/util-linux.git] / bash-completion / addpart
index 2b1e6bb5ef6f064df2cfd3ec3eac2136f13cedfa..31796390886e462880f8c9e4ae53d060c376fd4e 100644 (file)
@@ -1,13 +1,11 @@
 _addpart_module()
 {
-       local cur prev
+       local cur
        COMPREPLY=()
        cur="${COMP_WORDS[COMP_CWORD]}"
        case $COMP_CWORD in
                1)
-                       local DEVS=''
-                       while read dev; do DEVS+="$dev " ; done < <(lsblk -pnro name)
-                       OPTS="--help --version $DEVS"
+                       OPTS="--help --version $(lsblk -pnro name)"
                        COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
                        ;;
                2)