mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update 01-custom_script.sh
This commit is contained in:
@@ -40,7 +40,7 @@ chmod +x "$CONFIGLOCATION/${slug}".sh
|
||||
while IFS= read -r line
|
||||
do
|
||||
# Remove leading and trailing whitespaces
|
||||
line=$(echo "$line" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
|
||||
line="$(echo "$line" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
|
||||
|
||||
# Check if line is not empty and does not start with #
|
||||
if [[ -n "$line" ]] && [[ ! "$line" =~ ^# ]]; then
|
||||
|
||||
Reference in New Issue
Block a user