Github bot : script beautyshied

This commit is contained in:
github-actions
2023-09-10 00:12:02 +00:00
parent c04bf211fb
commit 45bdab7afb
3 changed files with 14 additions and 14 deletions

View File

@@ -28,8 +28,8 @@ mkdir -p /etc/cont-init.d
# Download scripts
for scripts in $MODULES; do
echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" &&
[ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] ||
(echo "script failed to install $scripts" && exit 1)
[ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] ||
(echo "script failed to install $scripts" && exit 1)
done
chmod -R 755 /etc/cont-init.d