From 3c966ad28d520f4b2bd7e57bc4f0d738ba2c6cf8 Mon Sep 17 00:00:00 2001 From: Ben Finney Date: Fri, 25 Nov 2016 21:55:16 +1100 Subject: [PATCH] Standardise bash-completion continuation and indentation. --- bash-completion/dput.bash | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bash-completion/dput.bash b/bash-completion/dput.bash index 3bfc4a3..4338780 100644 --- a/bash-completion/dput.bash +++ b/bash-completion/dput.bash @@ -7,23 +7,23 @@ # information, grant of license, and disclaimer of warranty. have dput && -_dput() -{ +_dput () { local cur prev options paroptions special i delayed_options hosts COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} - options='-c --config -d --debug -D --dinstall -f --force -h --help \ - -H --host-list -l --lintian -o --check-only -p --print \ - -P --passive -s --simulate -u --unchecked -e --delayed \ - -v --version -V --check-version' + options=" + -c --config -d --debug -D --dinstall -f --force -h --help + -H --host-list -l --lintian -o --check-only -p --print + -P --passive -s --simulate -u --unchecked -e --delayed + -v --version -V --check-version + " - hosts=$( - { + hosts=$( { grep "^\[.*\]" $HOME/.dput.cf 2> /dev/null | tr -d [] || /bin/true grep "^\[.*\]" /etc/dput.cf 2> /dev/null | tr -d [] || /bin/true - } | grep -v '^DEFAULT$' | sort -u) + } | grep -v '^DEFAULT$' | sort -u) paroptions="$options $hosts" @@ -41,7 +41,7 @@ _dput() compgen -G "${cur}*.asc" compgen -G "${cur}*.sig" compgen -W "$paroptions" | grep "^$cur" - ) ) + ) ) ;; esac -- 2.11.4.GIT