ccc86dae7669006d2c114aa5711871ad0eb8fe93

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #4375 from PrestanceDesign/capistrano-plugin-fix

Fix capistrano problem when generating autocompletion

Diff

 1diff --git a/plugins/capistrano/_capistrano b/plugins/capistrano/_capistrano
 2index e6e71ffcc80d121d3adba7bde7f461bafcaa26b3..c19c20b7a814a14f01563111ecb9f1af857ffb70 100644
 3--- a/plugins/capistrano/_capistrano
 4+++ b/plugins/capistrano/_capistrano
 5@@ -14,7 +14,7 @@ _arguments -C \
 6 _cap_tasks() {
 7   if [[ -f config/deploy.rb || -f Capfile ]]; then
 8     if [[ ! -f .cap_tasks~ ]]; then
 9-      shipit -v --tasks | sed 's/\(\[\)\(.*\)\(\]\)/\2:/' | awk '{command=$2; $1=$2=$3=""; gsub(/^[ \t\r\n]+/, "", $0); gsub(":", "\\:", command); print command"["$0"]"}' > .cap_tasks~
10+      shipit --tasks | sed 's/\(\[\)\(.*\)\(\]\)/\2:/' | awk '{command=$2; $1=$2=$3=""; gsub(/^[ \t\r\n]+/, "", $0); gsub(":", "\\:", command); print command"["$0"]"}' > .cap_tasks~
11     fi
12 
13     OLD_IFS=$IFS