mirror of
https://github.com/lisanet/PiShrink-macOS.git
synced 2026-04-11 17:16:21 +00:00
Change parameters to cp for image copy
This will speed up the copy process on some filesystems by writing less to the disk. CoW filesystems will perform the best
This commit is contained in:
@@ -26,7 +26,7 @@ fi
|
||||
#Copy to new file if requested
|
||||
if [ -n "$2" ]; then
|
||||
echo "Copying $1 to $2..."
|
||||
cp "$1" "$2"
|
||||
cp --reflink=auto --sparse=always "$1" "$2"
|
||||
if (( $? != 0 )); then
|
||||
echo "ERROR: Could not copy file..."
|
||||
exit -5
|
||||
|
||||
Reference in New Issue
Block a user