We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The copy option of install.sh to clone Xcode currently uses:
copy
install.sh
sudo cp -Rp "/Applications/Xcode.app" "/Applications/XcodeWithPlugins.app"
It would be really nice to use the -c flag on APFS volumes in order to perform a copy-on-write clone. It's faster and saves disk space.
-c
According to man 1 cp:
man 1 cp
-c copy files using clonefile(2)
stat -f "%Sd" /Applications/Xcode.app can be used to check the device name Xcode currently resides in. Skeletal test, probably not super efficient:
stat -f "%Sd" /Applications/Xcode.app
if [[ $(diskutil info $(stat -f "%Sd" /Applications/Xcode.app) | grep APFS | wc -l) -gt 0 ]]; then # use '-c' else # use normal copy fi
The text was updated successfully, but these errors were encountered:
d111888
Thanks!
Sorry, something went wrong.
No branches or pull requests
The
copy
option ofinstall.sh
to clone Xcode currently uses:sudo cp -Rp "/Applications/Xcode.app" "/Applications/XcodeWithPlugins.app"
It would be really nice to use the
-c
flag on APFS volumes in order to perform a copy-on-write clone. It's faster and saves disk space.According to
man 1 cp
:-c copy files using clonefile(2)
stat -f "%Sd" /Applications/Xcode.app
can be used to check the device name Xcode currently resides in. Skeletal test, probably not super efficient:The text was updated successfully, but these errors were encountered: