From 465b2fc078f7339d979d9d7c3f9ac304edb1599c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 31 Mar 2023 21:54:20 +0200 Subject: [PATCH] Update 01-custom_script.sh --- .templates/01-custom_script.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.templates/01-custom_script.sh b/.templates/01-custom_script.sh index 7cfacb836..28ddbadfd 100755 --- a/.templates/01-custom_script.sh +++ b/.templates/01-custom_script.sh @@ -11,14 +11,11 @@ if [ -f /config/"${slug}".sh ]; then mv -f /config/"${slug}".sh /config/addons_autoscripts/"${slug}".sh fi -# Convert scripts to linux -if [ -f /usr/bin/dos2unix ]; then - dos2unix /config/addons_autoscripts/"${slug}".sh -fi - # Execute scripts if [ -f /config/addons_autoscripts/"${slug}".sh ]; then bashio::log.info "... script found, executing" + # Convert scripts to linux + dos2unix /config/addons_autoscripts/"${slug}".sh chmod +x /config/addons_autoscripts/"${slug}".sh /./config/addons_autoscripts/"${slug}".sh else