From 5e9cb18928480a63c897da53e20b602a24aa68f2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 9 Aug 2009 20:55:25 -0400 Subject: Escape command --- tmp/post_upgrade_command | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tmp') diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command index f14b270..ae29a50 100755 --- a/tmp/post_upgrade_command +++ b/tmp/post_upgrade_command @@ -28,11 +28,11 @@ if [ $KERNELTYPE = "UP" ]; then fi # Detect interactive logins and display the shell -echo "if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then" >> $CVS_CO_DIR/root/.shrc +echo "if [ \`env | grep SSH_TTY | wc -l\` -gt 0 ] || [ \`env | grep cons25 | wc -l\` -gt 0 ]; then" >> $CVS_CO_DIR/root/.shrc echo " /etc/rc.initial" >> $CVS_CO_DIR/root/.shrc echo " exit" >> $CVS_CO_DIR/root/.shrc echo "fi" >> $CVS_CO_DIR/root/.shrc -echo "if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then" >> $CVS_CO_DIR/root/.profile +echo "if [ \`env | grep SSH_TTY | wc -l\` -gt 0 ] || [ \`env | grep cons25 | wc -l\` -gt 0 ]; then" >> $CVS_CO_DIR/root/.profile echo " /etc/rc.initial" >> $CVS_CO_DIR/root/.profile echo " exit" >> $CVS_CO_DIR/root/.profile echo "fi" >> $CVS_CO_DIR/root/.profile -- cgit v1.1