Better parsing of args, install now works as it should

This commit is contained in:
Daniel Martí 2013-12-19 17:51:16 +01:00
parent 3aec0aacd7
commit 84bf3d758f
4 changed files with 63 additions and 23 deletions

View file

@ -40,6 +40,9 @@ __package() {
__signed_package() {
files=( repo/*.apk )
if [ "${files[0]}" == "repo/*.apk" ]; then
return
fi
files=( ${files[@]#repo/} )
files=${files[@]%_*}
COMPREPLY=( $( compgen -W "$files" -- $cur ) )