Browse code

Correct openrc script for zsh

Since commit 7580a0c3e37932a8fc03750d35ccd4e13e18f8c4, openrc
print a WARNING message to stdout, it will break the zsh script
in faq.rst. This patch redirect openrc output to /dev/null.

Change-Id: Iaba03634d7a234cd4d120477f91ef56d0595cdf6
Closes-Bug: #1563940

Ethan Lynn authored on 2016/03/31 00:40:56
Showing 1 changed files
... ...
@@ -85,7 +85,7 @@ through bash for this
85 85
 
86 86
    function sourceopenrc {
87 87
        pushd ~/devstack >/dev/null
88
-       eval $(bash -c ". openrc $1 $2;env|sed -n '/OS_/ { s/^/export /;p}'")
88
+       eval $(bash -c ". openrc $1 $2 >/dev/null;env|sed -n '/OS_/ { s/^/export /;p}'")
89 89
        popd >/dev/null
90 90
    }
91 91