Skip to content

Commit

Permalink
use copy with clonefile on APFS volumes, fixes #44
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Jun 8, 2019
1 parent 35d7baf commit d111888
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.sh
Expand Up @@ -52,7 +52,11 @@ if [[ ${#args[@]} != "0" ]]; then

if [[ $(contains ${args[0]} "copy") ]]; then
echo "Copying Xcode.app to XcodeWithPlugins.app..."
sudo cp -Rp "/Applications/Xcode.app" "/Applications/XcodeWithPlugins.app"
if [[ $(diskutil info $(stat -f "%Sd" /Applications/Xcode.app) | grep APFS | wc -l) -gt 0 ]]; then
sudo cp -Rpc "/Applications/Xcode.app" "/Applications/XcodeWithPlugins.app"
else
sudo cp -Rp "/Applications/Xcode.app" "/Applications/XcodeWithPlugins.app"
fi
APP="/Applications/XcodeWithPlugins.app"
fi

Expand Down

0 comments on commit d111888

Please sign in to comment.