preserving quotes when echoing to /root/.bashrc
authorAndy Witter <awitter@georgialibraries.org>
Tue, 18 Dec 2012 15:49:38 +0000 (10:49 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Tue, 18 Dec 2012 15:49:38 +0000 (10:49 -0500)
templates/setup-head.sh

index e6e6f3e..4ff2d1e 100755 (executable)
@@ -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.