mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-31 02:10:32 +02: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
|
while IFS= read -r line
|
||||||
do
|
do
|
||||||
# Remove leading and trailing whitespaces
|
# 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 #
|
# Check if line is not empty and does not start with #
|
||||||
if [[ -n "$line" ]] && [[ ! "$line" =~ ^# ]]; then
|
if [[ -n "$line" ]] && [[ ! "$line" =~ ^# ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user