mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
14 lines
293 B
Bash
14 lines
293 B
Bash
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
|
|
slug="${HOSTNAME#*-}"
|
|
bashio::log.info "Execute if existing custom script /config/${slug}.sh"
|
|
|
|
if [ -f /config/${slug}.sh ]; then
|
|
chmod +x /config/"${slug}".sh
|
|
/./config/"${slug}".sh
|
|
else
|
|
bashio::log.info "... no script found"
|
|
fi
|
|
|