Skip to content

Commit

Permalink
Use ditto to copy on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Aug 4, 2018
1 parent 2d24ed1 commit d51a20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ extract_file() {
unzip "${path}" -d "${target}"
elif [[ "${path}" == *".dmg" ]]; then
readonly VOLUME=$(hdiutil attach "${path}" | tail -1 | awk '{print $3}')
cp -X -R "${VOLUME}/" "${target}/"
ditto -rsrc "${VOLUME}" "${target}"
diskutil unmount "${VOLUME}"
fi
}
Expand Down

0 comments on commit d51a20a

Please sign in to comment.