From: Andy Witter Date: Tue, 18 Dec 2012 15:49:38 +0000 (-0500) Subject: preserving quotes when echoing to /root/.bashrc X-Git-Tag: GenaSYS-2.3.6~51 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=34d62df987e8fa3750c1edaad32e91f19b5afcc2;p=contrib%2Fpines%2Fgenasys.git preserving quotes when echoing to /root/.bashrc --- 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.