sebsto/xcodeinstall

Fail to unmount Command Line Tools.dmg after installation

Closed this issue · 1 comments

Describe the bug
At the end of CLI installation, the command fails to unmount the DMG file

To Reproduce
install CLI

Expected behavior
no error

2022-12-05T12:25:07+0100 error xcodeinstall : [xcodeinstall] Can not unmount volume : file:///Volumes/Command%20Line%20Developer%20Tools/
Optional(CLIlib.ShellOutput(out: Optional(""), err: Optional("hdiutil: unmount: \"file:///Volumes/Command%20Line%20Developer%20Tools/\" failed to unmount due to error 2.\nhdiutil: unmount failed - No such file or directory\n"), code: 1))
🛑 Error while installing file:///Users/stormacq/.xcodeinstall/download/Command%20Line%20Tools%20for%20Xcode%2014.1.dmg

The %20 are added by URL class and should be remove when passing path to command line shell

Fixed by 094d270