From 833daa59caabc5773ab82e3df00c8c5f87c2f9aa Mon Sep 17 00:00:00 2001 From: Gyurix Date: Sat, 19 Oct 2024 13:28:44 +0200 Subject: [PATCH] removed unneccesary single quote in sed command --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8312bfa..0d7b7ca 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,7 +9,7 @@ EXISTS=$(grep -w -F $SELECTOR $HOST_FILE); if [ -n "$EXISTS" ]; then # selector already exists in hosts file and SCALE is not in use IP=$(echo $EXISTS | cut -d ' ' -f1); - sed "s/'$IP'/'$HOMEASSISTANT_IP'/g" $HOST_FILE > /tmp/hosts.local + sed "s/$IP/$HOMEASSISTANT_IP/g" $HOST_FILE > /tmp/hosts.local mv /tmp/hosts.local $HOST_FILE; else echo "'$HOMEASSISTANT_IP' '$SELECTOR'" >> $HOST_FILE