From c957863f2daa2517887f6645a56550b311099840 Mon Sep 17 00:00:00 2001 From: Marco Dalla Stella Date: Sun, 28 Sep 2025 10:34:18 +0200 Subject: [PATCH] Correct syntax errors in log_message calls - Remove parentheses from log_message calls which were causing syntax errors - Add missing space in if statement condition check --- run.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/run.sh b/run.sh index 9cd80c7..dbf565e 100755 --- a/run.sh +++ b/run.sh @@ -4,17 +4,17 @@ log_message() { echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" } -log_message("Update Bunny IPs list...") +log_message "Update Bunny IPs list..." bb -m bunny2realip.core -if [ $? -eq 0]; then - log_message("Reload nginx configuration...") +if [ $? -eq 0 ]; then + log_message "Reload nginx configuration..." systemctl reload nginx - if [ $? -eq 0]; then - log_message("Update successfully!") + if [ $? -eq 0 ]; then + log_message "Update successfully!" else - log_message("nginx: Something went wrong!") + log_message "nginx: Something went wrong!" fi else - log_message("bunny2realip: Something went wrong!") + log_message "bunny2realip: Something went wrong!" fi