Skip to content

Commit f3b8547

Browse files
Just remove files without chown
1 parent cc7e755 commit f3b8547

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/jobs/isolate_job.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def compile
168168
files_to_remove = [compile_output_file]
169169
files_to_remove << compile_script unless submission.is_project
170170
files_to_remove.each do |f|
171-
`sudo chown $(whoami): #{f} && sudo rm -rf #{f}`
171+
`sudo rm -rf #{f}`
172172
end
173173

174174
return :success if process_status.success?
@@ -229,7 +229,7 @@ def run
229229

230230
`#{command}`
231231

232-
`sudo chown $(whoami): #{run_script} && rm #{run_script}` unless submission.is_project
232+
`sudo rm #{run_script}` unless submission.is_project
233233
end
234234

235235
def verify

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy