From 855b07cbe9abc77ad36f76214a77fe89e1dcebc4 Mon Sep 17 00:00:00 2001 From: Grazfather Date: Tue, 8 Nov 2016 04:41:04 +0000 Subject: [PATCH] Test specifically for voltron/entry.py in install.sh --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 80e8486..8ae7c0f 100755 --- a/install.sh +++ b/install.sh @@ -69,8 +69,8 @@ if [ -n "${GDB}" ]; then ${SUDO} ${GDB_PYTHON} -m pip install $USER_MODE $DEV_MODE -U . # Add Voltron to gdbinit - if ! grep voltron "${HOME}/.gdbinit" &>/dev/null; then - GDB_INIT_FILE="${HOME}/.gdbinit" + GDB_INIT_FILE="${HOME}/.gdbinit" + if ! grep "voltron/entry.py" $GDB_INIT_FILE &>/dev/null; then echo "source $GDB_SITE_PACKAGES/voltron/entry.py" >> ${GDB_INIT_FILE} fi fi @@ -96,8 +96,8 @@ if [ -n "${LLDB}" ]; then fi # Add Voltron to lldbinit - if ! grep voltron "${HOME}/.lldbinit" &>/dev/null; then - LLDB_INIT_FILE="${HOME}/.lldbinit" + LLDB_INIT_FILE="${HOME}/.lldbinit" + if ! grep "voltron/entry.py" $LLDB_INIT_FILE &>/dev/null; then echo "command script import $LLDB_SITE_PACKAGES/voltron/entry.py" >> ${LLDB_INIT_FILE} fi fi