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.
pull/993/head
ToBeatElite 4 years ago committed by Disconnect3d
parent 5844257b1b
commit 5a39da7068

@ -10,6 +10,11 @@ if ! hash sudo 2>/dev/null && whoami | grep root; then
} }
fi fi
# Load Pwndbg into GDB on every launch.
if ! grep pwndbg ~/.gdbinit &>/dev/null; then
echo "source $PWD/gdbinit.py" >> ~/.gdbinit
fi
# Helper functions # Helper functions
linux() { linux() {
uname | grep -i Linux &>/dev/null uname | grep -i Linux &>/dev/null
@ -159,8 +164,3 @@ ${PYTHON} -m pip install ${INSTALLFLAGS} --upgrade pip
# Install Python dependencies # Install Python dependencies
${PYTHON} -m pip install ${INSTALLFLAGS} -Ur requirements.txt ${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

Loading…
Cancel
Save