peda/gef/pwndbg: make sure ~/.gdbinit exits before grep. just to make sure.

This commit is contained in:
Michael Rodler 2016-10-12 16:45:02 +02:00 committed by Yan
parent 0793cb8db1
commit de7d02ecc9
3 changed files with 6 additions and 1 deletions

View file

@ -11,6 +11,8 @@ EOF
chmod +rx bin/gdb-gef
cd gef
# make sure gdbinit exists
touch ~/.gdbinit
if ! grep "init-gef" ~/.gdbinit; then
cat >> ~/.gdbinit <<EOF

View file

@ -11,7 +11,8 @@ EOF
chmod +rx bin/gdb-peda
cd peda
#echo "source $PWD/peda.py" >> ~/.gdbinit
# make sure gdbinit exists
touch ~/.gdbinit
if ! grep "init-peda" ~/.gdbinit; then
cat >> ~/.gdbinit <<EOF

View file

@ -21,6 +21,8 @@ EOF
chmod +rx bin/pwndbg
cd pwndbg
# make sure gdbinit exists
touch ~/.gdbinit
if ! grep "init-pwndbg" ~/.gdbinit; then
cat >> ~/.gdbinit <<EOF