From 40ddb5325a7e158e7015566d68331d03e7a0594f Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Sat, 27 Mar 2021 00:55:20 +0500 Subject: [PATCH] Download utils.tar if it's missing or corrupted --- create-conty.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/create-conty.sh b/create-conty.sh index 7f7e1df..199f383 100755 --- a/create-conty.sh +++ b/create-conty.sh @@ -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