From 32405fcdcceaa8cac26fee7c396134f6bb719838 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 9 Feb 2021 10:25:47 +0100 Subject: [PATCH] Add parenthesis to functions to make sure that parameters used are those from the function call --- gitea-updater | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitea-updater b/gitea-updater index 99cc68c..983a7c4 100644 --- a/gitea-updater +++ b/gitea-updater @@ -21,7 +21,7 @@ key= # set your chat id here chat_id= -function send_message { +function send_message() { if [ $# -eq 0 ] then echo "No argument supplied. Please specify the message to send." @@ -30,7 +30,7 @@ function send_message { fi } -function update_gitea { +function update_gitea() { systemctl stop gitea.service # download the latest version