diff options
Diffstat (limited to 'bash-completion/mkfs')
-rw-r--r-- | bash-completion/mkfs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bash-completion/mkfs b/bash-completion/mkfs index 4e6e17568..4edc6f0dd 100644 --- a/bash-completion/mkfs +++ b/bash-completion/mkfs @@ -21,8 +21,7 @@ _mkfs_module() return 0 ;; esac - while read dev; do DEVS+="$dev " ; done < <(lsblk -pnro name) - COMPREPLY=( $(compgen -W "$DEVS /path/to/file" -- $cur) ) + COMPREPLY=( $(compgen -W "$(lsblk -pnro name) /path/to/file" -- $cur) ) return 0 } complete -F _mkfs_module mkfs |