From e256174d9ada372555f1cd6fbbf0680c5c945c60 Mon Sep 17 00:00:00 2001 From: Ethan Lynn Date: Wed, 30 Mar 2016 23:40:56 +0800 Subject: [PATCH] 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 --- doc/source/faq.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/faq.rst b/doc/source/faq.rst index cd4891519b..7793d8eb68 100644 --- a/doc/source/faq.rst +++ b/doc/source/faq.rst @@ -85,7 +85,7 @@ through bash for this function sourceopenrc { pushd ~/devstack >/dev/null - eval $(bash -c ". openrc $1 $2;env|sed -n '/OS_/ { s/^/export /;p}'") + eval $(bash -c ". openrc $1 $2 >/dev/null;env|sed -n '/OS_/ { s/^/export /;p}'") popd >/dev/null }