mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Fix fdroid import completion
For some reason, the newline was keeping it from working
This commit is contained in:
parent
09328806ce
commit
96885fc8c8
@ -3,7 +3,7 @@
|
|||||||
# bash-completion - part of the FDroid server tools
|
# bash-completion - part of the FDroid server tools
|
||||||
# Commits updates to apps, allowing you to edit the commit messages
|
# Commits updates to apps, allowing you to edit the commit messages
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013 Daniel Martí <mvdan@mvdan.cc>
|
# Copyright (C) 2013, 2014 Daniel Martí <mvdan@mvdan.cc>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as published by
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
@ -169,10 +169,7 @@ __complete_import() {
|
|||||||
opts="-h -u -s -r"
|
opts="-h -u -s -r"
|
||||||
lopts="--help --url --subdir --repo"
|
lopts="--help --url --subdir --repo"
|
||||||
case "${prev}" in
|
case "${prev}" in
|
||||||
-u|--url|-r|--repo) return 0;;
|
-u|--url|-r|--repo|-s|--subdir) return 0;;
|
||||||
-s|--subdir)
|
|
||||||
_filedir
|
|
||||||
return 0;;
|
|
||||||
esac
|
esac
|
||||||
__complete_options
|
__complete_options
|
||||||
}
|
}
|
||||||
@ -256,7 +253,7 @@ __complete_init() {
|
|||||||
_fdroid() {
|
_fdroid() {
|
||||||
local cmd cmds
|
local cmd cmds
|
||||||
cmd=${COMP_WORDS[1]}
|
cmd=${COMP_WORDS[1]}
|
||||||
cmds=" build init install update publish checkupdates import
|
cmds=" build init install update publish checkupdates import \
|
||||||
rewritemeta lint scanner verify stats server "
|
rewritemeta lint scanner verify stats server "
|
||||||
|
|
||||||
for c in $cmds; do eval "_fdroid_${c} () {
|
for c in $cmds; do eval "_fdroid_${c} () {
|
||||||
|
Loading…
Reference in New Issue
Block a user