e891fbff9e2e70acfbeff0734cd1fc012861e6ef

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

knife_ssh: small tweaks

Diff

 1diff --git a/plugins/knife_ssh/knife_ssh.plugin.zsh b/plugins/knife_ssh/knife_ssh.plugin.zsh
 2index 7fdd42a1ebb30d2a403aef42081ddae2b6db205d..dc425a33e06fc703e8104ba96bfe7131555b15b6 100644
 3--- a/plugins/knife_ssh/knife_ssh.plugin.zsh
 4+++ b/plugins/knife_ssh/knife_ssh.plugin.zsh
 5@@ -1,17 +1,17 @@
 6 function knife_ssh() {
 7-  grep -q $1 ~/.knife_comp~ 2> /dev/null || rm -f ~/.knife_comp~;
 8+  grep -q $1 ~/.knife_comp~ 2> /dev/null || rm -f ~/.knife_comp~
 9   ssh $(knife node show $1 | awk '/IP:/{print $2}')
10 }
11 
12 _knife_ssh() {
13   if hash knife 2>/dev/null; then
14     if [[ ! -f ~/.knife_comp~ ]]; then
15-      echo "\nGenerating ~/.knife_comp~..." >/dev/stderr
16+      echo "\nGenerating ~/.knife_comp~..." >&2
17       knife node list > ~/.knife_comp~
18     fi
19-    compadd $(<~/.knife_comp~)
20+    compadd $(< ~/.knife_comp~)
21   else
22-    echo "Could not find knife" > /dev/stderr;
23+    echo "Could not find knife" >&2
24   fi
25 }
26