Skip to content

Commit

Permalink
jarsigner: complete on *.apk too (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoziviani committed Feb 21, 2020
1 parent 0a5d616 commit 64449ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions completions/jarsigner
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ _jarsigner()
return
;;
-signedjar)
_filedir jar
_filedir '@(jar|apk)'
return
;;
esac

# Check if a jar was already given.
local i jar=false
for (( i=0; i < ${#words[@]}-1; i++ )) ; do
if [[ "${words[i]}" == *.jar && \
if [[ "${words[i]}" == *.@(jar|apk) && \
"${words[i-1]}" != -signedjar ]]; then
jar=true
break
Expand All @@ -49,7 +49,7 @@ _jarsigner()
-protected -providerName -providerClass -providerArg' \
-- "$cur") )
fi
_filedir jar
_filedir '@(jar|apk)'
fi
} &&
complete -F _jarsigner jarsigner
Expand Down

0 comments on commit 64449ed

Please sign in to comment.