From 16afa32f574e04ed53b5c4a2de3ae809f8d052aa Mon Sep 17 00:00:00 2001 From: DSR! Date: Tue, 26 Nov 2024 22:33:22 -0300 Subject: [PATCH] Update builder.sh --- tools/builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/builder.sh b/tools/builder.sh index 99ce86e..0153522 100755 --- a/tools/builder.sh +++ b/tools/builder.sh @@ -87,7 +87,7 @@ prepare_builder () { for TARGET in ${FORCE_PACKAGES[@]}; do PACKAGE_IPK="${TARGET}_${PACKAGES_ARQ}.ipk" PACKAGE_PATH="$IMAGEBUILDER_FOLDER/packages/$PACKAGE_IPK" - if [ ! -f "$PACKAGE_PATH" ]; then + if [ ! -f "$PACKAGE_PATH" ] || [ ! -s "$PACKAGE_PATH" ]; then echo " [+] Install: $TARGET" wget -q "$DOWNLOAD_BASE_URL/$PACKAGES_ARQ/$PACKAGE_IPK" -O "$PACKAGE_PATH" else