Skip to content

Commit cb8b0f3

Browse files
committed
Make sed call in update-checksums.R crossplat
1 parent 575cbdd commit cb8b0f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

r/tools/update-checksums.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ for (path in binary_paths) {
6262
if (grepl("windows", path)) {
6363
cat(paste0("Converting ", path, " to windows style line endings\n"))
6464
# UNIX style line endings cause errors with mysys2 sha512sum
65-
sed_status <- system2("sed", args = c("-i", "s/\\\\r//", file))
65+
sed_status <- system2("sed", args = c("-i", "-e", "s/\\\\r//", file))
6666
if (sed_status != 0) {
6767
stop("Failed to remove \\r from windows checksum file. Exit code: ", sed_status)
6868
}

0 commit comments

Comments
 (0)