fix xz discovery

This commit is contained in:
parazyd 2017-07-24 20:22:21 +02:00
parent 2e871f39e7
commit 07d1f39ce6
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 2 additions and 2 deletions

View File

@ -116,11 +116,11 @@ image_pack_dist() {
}
_xz=(xz -zv)
[[ $(command -v pixz) ]] && _xz=pixz
[[ $(command -v pixz) ]] && _xz=(pixz)
notice "compressing image with $_xz"
silly
pushd $workdir
${_xz} "${image_name}.img"
${=_xz} "${image_name}.img"
notice "generating sha256 for ${image_name}.img.xz"
sha256sum ${image_name}.img.xz > ${image_name}.img.xz.sha