From 5a39da7068300279802f5cbf999cb360b568c472 Mon Sep 17 00:00:00 2001 From: ToBeatElite <61940860+ToBeatELIT3@users.noreply.github.com> Date: Wed, 8 Dec 2021 12:04:03 -0500 Subject: [PATCH] moved block to source gdbinit when the linux distro is not supported or is arch based, the setup.sh exits after giving install instructions and before sourcing the gdbinit. by moving this block to before any ``exit 1``'s are called, making it so that the source line is always there no matter what. --- setup.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.sh b/setup.sh index ba781f6cb..2d6d5dcb0 100755 --- a/setup.sh +++ b/setup.sh @@ -10,6 +10,11 @@ if ! hash sudo 2>/dev/null && whoami | grep root; then } fi +# Load Pwndbg into GDB on every launch. +if ! grep pwndbg ~/.gdbinit &>/dev/null; then + echo "source $PWD/gdbinit.py" >> ~/.gdbinit +fi + # Helper functions linux() { uname | grep -i Linux &>/dev/null @@ -159,8 +164,3 @@ ${PYTHON} -m pip install ${INSTALLFLAGS} --upgrade pip # Install Python dependencies ${PYTHON} -m pip install ${INSTALLFLAGS} -Ur requirements.txt - -# Load Pwndbg into GDB on every launch. -if ! grep pwndbg ~/.gdbinit &>/dev/null; then - echo "source $PWD/gdbinit.py" >> ~/.gdbinit -fi