Skip to content
Snippets Groups Projects
Commit 94b4b794 authored by Alex's avatar Alex
Browse files

fix: write PS4 var

parent 5176637d
No related branches found
No related tags found
No related merge requests found
......@@ -3,13 +3,11 @@ open('/tmp/.trace', 'a').close()
bashrc = open('/home/theia/.bashrc', 'a')
bashrc.write('\n')
bashrc.write('''PS4='$(echo $(date) $(history 1) >> /tmp/.trace) TRACE: \'''')
bashrc.write('''PS4=\'$(echo $(date) $(history 1) >> /tmp/.trace)\'''')
bashrc.write('\n')
bashrc.write('export PS4')
bashrc.write('\n')
bashrc.write('set -x')
bashrc.write('\n')
# Close the file
bashrc.close()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment