Check for xz

This commit is contained in:
Tomas Matejicek
2024-02-22 09:35:52 +01:00
committed by GitHub
parent 48a626f7b8
commit d2a09b19ea

7
build
View File

@@ -14,6 +14,13 @@ CWD="$(pwd)"
# only root can continue, because only root can read all files from your system
allow_only_root
# check for xz
if [ "$(xz --help 2>&1 | grep -i "Compress")" = "" ]; then
echo "xz not found or cannot compress"
echo "you may consider installing xz-tools package"
exit 1
fi
# check for mksquashfs with xz compression
if [ "$(mksquashfs 2>&1 | grep "Xdict-size")" = "" ]; then
echo "mksquashfs not found or doesn't support -comp xz, aborting, no changes made"