Skip to content

Commit

Permalink
Use Sudo When Pruning coresymbolicationd Cache
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=267382
rdar://120814769

Reviewed by Jonathan Bedard.

As a follow up to https://bugs.webkit.org/show_bug.cgi?id=267053 , sudo should be used when pruning the coresymbolicationd cache.

* Tools/Scripts/delete-if-too-large:
(main):

Canonical link: https://commits.webkit.org/273306@main
  • Loading branch information
chgibb-apple committed Jan 22, 2024
1 parent 8863d49 commit 6fe2994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/Scripts/delete-if-too-large
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main():

if directorySize >= tenGigabytesInKiloBytes:
print(f'{directory} is {directorySize}K in size. Deleting')
subprocess.call(['rm','-rf', directoryPath])
subprocess.call(['sudo', 'rm','-rf', directoryPath])
print(f'Deleted {directory}')
else:
print(f'{directory} is {directorySize}K in size. Doing nothing')
Expand Down

0 comments on commit 6fe2994

Please sign in to comment.