From 2db42dfb2e01546382071402f2eb4e238be9d481 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 25 Aug 2025 19:04:04 +0300 Subject: [PATCH] BuildSystem: Don't download config.sub every hour There isn't really any need to :D --- ports/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ports/install.sh b/ports/install.sh index d5d779a4..f30e9d2e 100755 --- a/ports/install.sh +++ b/ports/install.sh @@ -59,8 +59,9 @@ config_sub_update() { config_sub_path="$BANAN_PORT_DIR/config.sub" - if [ ! -f "$config_sub_path" ] || [ $(find "$config_sub_path" -mtime +1) ]; then - wget -O "$config_sub_path" 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' + if [ ! -f "$config_sub_path" ]; then + wget -O "$config_sub_path.tmp" 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' || exit 1 + mv $config_sub_path.tmp $config_sub_path fi for target in "${CONFIG_SUB[@]}"; do