hdiutil: create failed - Resource busy
Trying to run the following from my mac Terminal running on Ventura:
curl -L -o /tmp/vscode.zip
unzip -q -d /tmp/Vscode.app /tmp/vscode.zip
hdiutil create -volname "Vscode" -srcfolder "/tmp/Vscode.app" -ov -format UDZO -imagekey zlib-level=9 -fs HFS+ /tmp/Vscode.dmg
and ending up with this error: hdiutil: create failed - Resource busy
Does anybody know how to go around this?
[Link Edited by Moderator]