Commit de4644c0f572d8971b4fcf567d6fe5e861392931

Authored by Shrikant Sharat
1 parent 64df9931b5

Install plugins inline now working.

Showing 1 changed file with 10 additions and 1 deletions Side-by-side Diff

... ... @@ -81,7 +81,16 @@ bundle-install () {
81 81  
82 82 local handled_repos=""
83 83  
84   - echo-non-empty "$bundles" | while read spec; do
  84 + if [[ $# != 0 ]]; then
  85 + # Record and install just the given plugin here and now.
  86 + bundle "$@"
  87 + echo "$bundles" | tail -1
  88 +
  89 + else
  90 + # Install all the plugins, previously recorded.
  91 + echo-non-empty "$bundles"
  92 +
  93 + fi | while read spec; do
85 94 echo "-> $spec"
86 95  
87 96 local name="$(echo "$spec" | awk '{print $1}')"