BuildSystem: Don't download config.sub every hour

There isn't really any need to :D
This commit is contained in:
Bananymous 2025-08-25 19:04:04 +03:00
parent 10bd24e585
commit 2db42dfb2e
1 changed files with 3 additions and 2 deletions

View File

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