Test specifically for voltron/entry.py in install.sh

This commit is contained in:
Grazfather 2016-11-08 04:41:04 +00:00
parent 16aa0d8d53
commit 855b07cbe9
1 changed files with 4 additions and 4 deletions

View File

@ -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