mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 18:12:08 +02:00
profile/coreos/base: slsa: switch to bz2 compression for consistency
...and remove redundant mkdir. Mkdir is already called with the same argument a couple of lines lower.
This commit is contained in:
parent
d211a2b168
commit
1a0f396be4
@ -171,11 +171,10 @@ cros_post_src_install_generate_slsa_provenance_report() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$D/usr/share/SLSA/"
|
local report_file="${CATEGORY}_${PF}.json.bz2"
|
||||||
local report_file="${CATEGORY}_${PF}.json.xz"
|
|
||||||
local dest_dir="${D}/usr/share/SLSA/"
|
local dest_dir="${D}/usr/share/SLSA/"
|
||||||
|
|
||||||
__slsa_provenance_report | xz -9cz > "${T}/${report_file}"
|
__slsa_provenance_report | lbzip2 -9cz > "${T}/${report_file}"
|
||||||
|
|
||||||
mkdir -p "${dest_dir}"
|
mkdir -p "${dest_dir}"
|
||||||
mv "${T}/${report_file}" "${dest_dir}"
|
mv "${T}/${report_file}" "${dest_dir}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user