RehabMan / patch-nvme

A set of scripts and plists for patching IONVMeFamily.kext for non-Apple NVMe SSDs (based on the work of PikeRAlpha)
439 stars 70 forks source link

cp -RX doesn't work in patch_nvme.sh #26

Closed qixiang109 closed 7 years ago

qixiang109 commented 7 years ago

I'm using a OS X 10.12.5 MAC and the 'cp -RX' command in patch_nvme.sh line 86 doesn't work. I changed it to 'cp -rx' , the lower case, and it works.

RehabMan commented 7 years ago

From 'man cp' on 10.12.5:

     -R    If source_file designates a directory, cp copies the directory and the entire subtree connected at that
           point.  If the source_file ends in a /, the contents of the directory are copied rather than the directory
           itself.  This option also causes symbolic links to be copied, rather than indirected through, and for cp to
           create special files rather than copying them as normal files.  Created directories have the same mode as the
           corresponding source directory, unmodified by the process' umask.

           In -R mode, cp will continue copying even if errors are detected.
...
     -X    Do not copy Extended Attributes (EAs) or resource forks.

Clearly you installed a non-Apple version of 'cp.