Update 01-custom_script.sh

This commit is contained in:
Alexandre
2023-12-30 11:44:02 +01:00
committed by GitHub
parent 5a044c90c9
commit c3a2663410

View File

@@ -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