Update builder.sh

This commit is contained in:
DSR! 2024-11-26 22:33:22 -03:00 committed by GitHub
parent 43d6d9d48c
commit 16afa32f57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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