Download utils.tar if it's missing or corrupted

This commit is contained in:
Kron4ek 2021-03-27 00:55:20 +05:00 committed by GitHub
parent f87e9df6a1
commit 40ddb5325a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,9 +13,9 @@ bootstrap="${script_dir}"/root.x86_64
cd "${script_dir}" || exit 1
if [ ! -f utils.tar ]; then
echo "utils.tar is required!"
exit 1
if [ ! -f utils.tar ] || [ "$(wc -c < utils.tar)" -lt 1000 ]; then
rm -f utils.tar
wget -q --show-progress "https://github.com/Kron4ek/Conty/raw/master/utils.tar"
fi
if [ ! -f squashfs-start.sh ]; then