try a different xz call with an array

This commit is contained in:
parazyd 2017-05-05 18:48:21 +02:00
parent 01fceed897
commit e7d9cb5ceb
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 2 additions and 2 deletions

View File

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