From 847c151c534afc41c0af16c77e8a7bfea9b7ecea Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:15:45 +0200 Subject: [PATCH] Update 00-batch_updater.sh --- .templates/00-batch_updater.sh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.templates/00-batch_updater.sh b/.templates/00-batch_updater.sh index 1dc72c97e..8b1378917 100644 --- a/.templates/00-batch_updater.sh +++ b/.templates/00-batch_updater.sh @@ -1,17 +1 @@ -#!/usr/bin/with-contenv bashio -# shellcheck shell=bash -# ============================================================================== -# Ensures all scripts are up-to-date -# ============================================================================== -if [ -d /etc/cont-init.d ]; then - # Check if downloads possible - wget -NS https://example.com/ &>/dev/null || exit 0 - - # Check scripts - cd /etc/cont-init.d || true - for scripts in *; do - # If newer file, download to directory - wget -NS --content-disposition "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" &>/dev/null || true - done -fi