From 96885fc8c85353351e6742a6016060e870f94b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 10 Jan 2014 13:09:54 +0100 Subject: [PATCH] Fix fdroid import completion For some reason, the newline was keeping it from working --- completion/bash-completion | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/completion/bash-completion b/completion/bash-completion index 8423b3e0..47c51044 100644 --- a/completion/bash-completion +++ b/completion/bash-completion @@ -3,7 +3,7 @@ # bash-completion - part of the FDroid server tools # Commits updates to apps, allowing you to edit the commit messages # -# Copyright (C) 2013 Daniel Martí +# Copyright (C) 2013, 2014 Daniel Martí # # 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 @@ -169,10 +169,7 @@ __complete_import() { opts="-h -u -s -r" lopts="--help --url --subdir --repo" case "${prev}" in - -u|--url|-r|--repo) return 0;; - -s|--subdir) - _filedir - return 0;; + -u|--url|-r|--repo|-s|--subdir) return 0;; esac __complete_options } @@ -256,8 +253,8 @@ __complete_init() { _fdroid() { local cmd cmds cmd=${COMP_WORDS[1]} - cmds=" build init install update publish checkupdates import - rewritemeta lint scanner verify stats server " + cmds=" build init install update publish checkupdates import \ +rewritemeta lint scanner verify stats server " for c in $cmds; do eval "_fdroid_${c} () { local cur prev opts lopts