Skip to content

Commit

Permalink
Just remove files without chown
Browse files Browse the repository at this point in the history
hermanzdosilovic committed Mar 9, 2024
1 parent 6fbf16b commit b40976f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/jobs/isolate_job.rb
Original file line number Diff line number Diff line change
@@ -178,7 +178,7 @@ def compile
files_to_remove = [compile_output_file]
files_to_remove << compile_script unless submission.is_project
files_to_remove.each do |f|
`sudo chown $(whoami): #{f} && sudo rm -rf #{f}`
`sudo rm -rf #{f}`
end

return :success if process_status.success?
@@ -248,7 +248,7 @@ def run

`#{command}`

`sudo chown $(whoami): #{run_script} && rm #{run_script}` unless submission.is_project
`sudo rm #{run_script}` unless submission.is_project
end

def verify

0 comments on commit b40976f

Please sign in to comment.