From 93031ee8e3ebbb65f4ad532f16be317bd9e323d1 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 31 Aug 2024 14:13:18 -0400 Subject: [PATCH] sspatch: update Signed-off-by: AuxXxilium --- sspatch/install.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sspatch/install.sh b/sspatch/install.sh index 4e6d1d8..c51ed5a 100755 --- a/sspatch/install.sh +++ b/sspatch/install.sh @@ -31,21 +31,21 @@ if [ "${1}" = "late" ]; then ENTRIES=("0.0.0.0 synosurveillance.synology.com") for ENTRY in "${ENTRIES[@]}" do - if [ -f /tmpRoot/etc/hosts ]; then + if [ -f "/tmpRoot/etc/hosts" ]; then # Check if the entry is already in the file if grep -Fxq "${ENTRY}" /tmpRoot/etc/hosts; then - echo "Entry ${ENTRY} already exists" + echo "Entry ${ENTRY} already exists" else - echo "Entry ${ENTRY} does not exist, adding now" - echo "${ENTRY}" >> /tmpRoot/etc/hosts + echo "Entry ${ENTRY} does not exist, adding now" + echo "${ENTRY}" >> /tmpRoot/etc/hosts fi fi - if [ -f /tmpRoot/etc.defaults/hosts ]; then + if [ -f "/tmpRoot/etc.defaults/hosts" ]; then if grep -Fxq "${ENTRY}" /tmpRoot/etc.defaults/hosts; then - echo "Entry ${ENTRY} already exists" + echo "Entry ${ENTRY} already exists" else - echo "Entry ${ENTRY} does not exist, adding now" - echo "${ENTRY}" >> /tmpRoot/etc.defaults/hosts + echo "Entry ${ENTRY} does not exist, adding now" + echo "${ENTRY}" >> /tmpRoot/etc.defaults/hosts fi fi done