chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
90c27da
)
Remove a few unnecessary vars
author
Daniel Martí
<mvdan@mvdan.cc>
Tue, 31 Dec 2013 09:17:49 +0000
(10:17 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Thu, 9 Jan 2014 15:23:48 +0000
(16:23 +0100)
completion/bash-completion
patch
|
blob
|
history
diff --git
a/completion/bash-completion
b/completion/bash-completion
index b2644d2b9956dce7bc932f4fa2e324d0fad28c19..4ac8602bb49351d52ac17d48b7c8879dbb78b92c 100644
(file)
--- a/
completion/bash-completion
+++ b/
completion/bash-completion
@@
-18,8
+18,8
@@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# 'fdroid' is
aliased automatically, but aliases to it are not. For instance,
-# to alias 'fd' to 'fdroid' and have competion available:
+# 'fdroid' is
completed automatically, but aliases to it are not.
+#
For instance,
to alias 'fd' to 'fdroid' and have competion available:
#
# alias fd='fdroid'
# complete -F _fdroid fd
#
# alias fd='fdroid'
# complete -F _fdroid fd
@@
-54,8
+54,7
@@
__apk_package() {
}
__apk_vercode() {
}
__apk_vercode() {
- local p
- p=${cur:0:-1}
+ local p=${cur:0:-1}
files=( ${1}/${p}_*.apk )
[ -f "${files[0]}" ] || return
files=( ${1}/${p}_*.apk )
[ -f "${files[0]}" ] || return
@@
-66,8
+65,7
@@
__apk_vercode() {
}
__vercode() {
}
__vercode() {
- local p
- p=${cur:0:-1}
+ local p=${cur:0:-1}
COMPREPLY=( $( compgen -P "${p}:" -W "$( while read line; do
if [[ "$line" == "Build Version:"* ]]
COMPREPLY=( $( compgen -P "${p}:" -W "$( while read line; do
if [[ "$line" == "Build Version:"* ]]
@@
-243,14
+241,13
@@
__complete_init() {
}
_fdroid() {
}
_fdroid() {
- local cmd cmds
aliased
+ local cmd cmds
cmd=${COMP_WORDS[1]}
cmds=" build init install update publish checkupdates import
rewritemeta scanner verify stats server "
cmd=${COMP_WORDS[1]}
cmds=" build init install update publish checkupdates import
rewritemeta scanner verify stats server "
- aliased=false
for c in $cmds; do eval "_fdroid_${c} () {
for c in $cmds; do eval "_fdroid_${c} () {
- local cur prev
cmds
opts lopts
+ local cur prev opts lopts
__fdroid_init ${c};
}"; done
__fdroid_init ${c};
}"; done