Skip to content

Commit

Permalink
Just remove files without chown
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanzdosilovic committed Mar 8, 2024
1 parent cc7e755 commit f3b8547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/jobs/isolate_job.rb
Expand Up @@ -168,7 +168,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?
Expand Down Expand Up @@ -229,7 +229,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
Expand Down

0 comments on commit f3b8547

Please sign in to comment.