summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorTaylor Braun-Jones <taylor.braun-jones@ge.com>2014-04-25 17:59:53 (GMT)
committerTaylor Braun-Jones <taylor.braun-jones@ge.com>2014-04-25 17:59:53 (GMT)
commit43645ff15bdd376c6484305ef35191a5bf43e446 (patch)
treec7155b87799f150325e7b77456eb548c717e588f /misc
parent28d64afc726d38a411efeda6b61a4f9ff77547d8 (diff)
downloadNinja-43645ff15bdd376c6484305ef35191a5bf43e446.zip
Ninja-43645ff15bdd376c6484305ef35191a5bf43e446.tar.gz
Ninja-43645ff15bdd376c6484305ef35191a5bf43e446.tar.bz2
Style: Fix inconsistent indentation
Diffstat (limited to 'misc')
-rw-r--r--misc/bash-completion34
1 files changed, 17 insertions, 17 deletions
diff --git a/misc/bash-completion b/misc/bash-completion
index ecb6c54..0ca5235 100644
--- a/misc/bash-completion
+++ b/misc/bash-completion
@@ -19,23 +19,23 @@ _ninja_target() {
local cur targets dir line targets_command OPTIND
cur="${COMP_WORDS[COMP_CWORD]}"
- if [[ "$cur" == "--"* ]]; then
- # there is currently only one argument that takes --
- COMPREPLY=($(compgen -P '--' -W 'version' -- "${cur:2}"))
- else
- dir="."
- line=$(echo ${COMP_LINE} | cut -d" " -f 2-)
- # filter out all non relevant arguments but keep C for dirs
- while getopts C:f:j:l:k:nvd:t: opt $line; do
- case $opt in
- # eval for tilde expansion
- C) eval dir="$OPTARG" ;;
- esac
- done;
- targets_command="eval ninja -C \"${dir}\" -t targets all"
- targets=$((${targets_command} 2>/dev/null) | awk -F: '{print $1}')
- COMPREPLY=($(compgen -W "$targets" -- "$cur"))
- fi
+ if [[ "$cur" == "--"* ]]; then
+ # there is currently only one argument that takes --
+ COMPREPLY=($(compgen -P '--' -W 'version' -- "${cur:2}"))
+ else
+ dir="."
+ line=$(echo ${COMP_LINE} | cut -d" " -f 2-)
+ # filter out all non relevant arguments but keep C for dirs
+ while getopts C:f:j:l:k:nvd:t: opt $line; do
+ case $opt in
+ # eval for tilde expansion
+ C) eval dir="$OPTARG" ;;
+ esac
+ done;
+ targets_command="eval ninja -C \"${dir}\" -t targets all"
+ targets=$((${targets_command} 2>/dev/null) | awk -F: '{print $1}')
+ COMPREPLY=($(compgen -W "$targets" -- "$cur"))
+ fi
return
}
complete -F _ninja_target ninja