tune2fs: Add missing return in -M arg completion

master
Ville Skyttä 2015-02-03 07:56:44 +02:00
parent 6a4ad49fa5
commit edea6cb6da
2 changed files with 2 additions and 1 deletions

View File

@ -1963,7 +1963,7 @@ _completion_loader()
local cmd="${1:-_EmptycmD_}" compdir=./completions compfile
[[ $BASH_SOURCE == */* ]] && compdir="${BASH_SOURCE%/*}/completions"
for compfile in "${cmd##*/}" _"${cmd##*/}"; do
for compfile in "${cmd##*/}" "${cmd##*/}".bash _"${cmd##*/}"; do
compfile="$compdir/$compfile"
# Avoid trying to source dirs; https://bugzilla.redhat.com/903540
[[ -f "$compfile" ]] && . "$compfile" &>/dev/null && return 124

View File

@ -20,6 +20,7 @@ _tune2fs()
;;
-M)
_filedir -d
return 0
;;
-o)
local -a opts=(^debug ^bsdgroups ^user_xattr ^acl ^uid16