mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
Convert scripts to unix before execution https://github.com/alexbelgium/hassio-addons/issues/775
This commit is contained in:
@@ -11,6 +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"
|
||||
|
||||
Reference in New Issue
Block a user