Skip to content

Commit 7382b7e

Browse files
committed
Added support to automatically delete Xcode's .xip after installation
I use `xcode-update` with a different user that the one I'm logged in on Finder, so emptying the Trash after each installation was a PITA. - See `xcodes` Pull Request #211, “Added support to immediately delete Xcode and its XIPs”: XcodesOrg/xcodes#211
1 parent a9d08cb commit 7382b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xcode-update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def install_latest_xcode(dry_run: bool):
8787
print(f'- Xcode version {latest_version} will be installed.')
8888

8989
if not dry_run:
90-
subprocess.run(['xcodes', 'install', f'{latest_version}', '--no-superuser'], check=True)
90+
subprocess.run(['xcodes', 'install', f'{latest_version}', '--no-superuser', '--empty-trash'], check=True)
9191

9292

9393
def delete_xcode(dry_run: bool):

0 commit comments

Comments
 (0)