From 34d62df987e8fa3750c1edaad32e91f19b5afcc2 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Tue, 18 Dec 2012 10:49:38 -0500 Subject: [PATCH] preserving quotes when echoing to /root/.bashrc --- templates/setup-head.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/setup-head.sh b/templates/setup-head.sh index e6e6f3e..4ff2d1e 100755 --- a/templates/setup-head.sh +++ b/templates/setup-head.sh @@ -133,8 +133,8 @@ if ! grep -q "Evergreen Modifications" /root/.bashrc fi fi -echo "alias detach='su - -c "brick_ctl.sh -a detach_brick" opensrf'" >> /root/.bashrc -echo "alias attach='su - -c "brick_ctl.sh -a attach_brick" opensrf'" >> /root/.bashrc +echo -e "alias detach='su - -c \"brick_ctl.sh -a detach_brick\" opensrf'" >> /root/.bashrc +echo -e "alias attach='su - -c \"brick_ctl.sh -a attach_brick\" opensrf'" >> /root/.bashrc ### Install dependencies. -- 2.11.0