File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ function base_from() {
41
41
relative=" $( coreutils realpath --relative-to=" $OUTPUT /blobs/sha256" " $blob " --no-symlinks) "
42
42
coreutils ln -s " $relative " " $OUTPUT /blobs/$relative_to_blobs "
43
43
else
44
- coreutils cat " $blob " > " $OUTPUT /blobs/$relative_to_blobs "
44
+ coreutils cp --no-preserve=mode " $blob " " $OUTPUT /blobs/$relative_to_blobs "
45
45
fi
46
46
done
47
- coreutils cat " $path /oci-layout" > " $OUTPUT /oci-layout"
47
+ coreutils cp --no-preserve=mode " $path /oci-layout" " $OUTPUT /oci-layout"
48
48
jq ' .manifests[0].annotations["org.opencontainers.image.ref.name"] = "intermediate"' " $path /index.json" > " $OUTPUT /index.json"
49
49
}
50
50
@@ -110,7 +110,7 @@ function add_layer() {
110
110
relative=$( coreutils realpath --no-symlinks --canonicalize-missing --relative-to=" $OUTPUT /blobs/sha256" " $path " )
111
111
coreutils ln --force --symbolic " $relative " " $output_path "
112
112
else
113
- coreutils cat " $path " > " $output_path "
113
+ coreutils cp --no-preserve=mode " $path " " $output_path "
114
114
fi
115
115
}
116
116
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function add_image() {
26
26
--argjson manifest " ${manifest} " \
27
27
' .manifests |= [$manifest + {"platform": $platform}]' \
28
28
" ${output_path} /manifest_list.json" > " ${output_path} /manifest_list.new.json"
29
- cat " ${output_path} /manifest_list.new.json" > " ${output_path} /manifest_list.json"
29
+ " ${COREUTILS} " cp --no-preserve=mode " ${output_path} /manifest_list.new.json" " ${output_path} /manifest_list.json"
30
30
done
31
31
}
32
32
@@ -36,7 +36,7 @@ function copy_blob() {
36
36
local blob_image_relative_path=" $3 "
37
37
local dest_path=" ${output_path} /${blob_image_relative_path} "
38
38
mkdirp " $( dirname " ${dest_path} " ) "
39
- " ${COREUTILS} " cat " ${image_path} /${blob_image_relative_path} " > " ${dest_path} "
39
+ " ${COREUTILS} " cp --no-preserve=mode " ${image_path} /${blob_image_relative_path} " " ${dest_path} "
40
40
}
41
41
42
42
function create_oci_layout() {
You can’t perform that action at this time.
0 commit comments