From 94b4b79433c936001af11a08a482979b5ea0dd8a Mon Sep 17 00:00:00 2001 From: Alex <alex.loo@protonmail.com> Date: Fri, 4 Jun 2021 11:03:39 +0200 Subject: [PATCH] fix: write PS4 var --- setup_trace.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup_trace.py b/setup_trace.py index 84c9cd26..76286064 100644 --- a/setup_trace.py +++ b/setup_trace.py @@ -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 -- GitLab