Add parenthesis to function to make sure that parameter used is the one from the function call

This commit is contained in:
adrien 2021-02-09 10:23:23 +01:00
parent d3de9f36aa
commit cedd02c2df
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ chat_id=
# set your username
username=
function send_message {
function send_message() {
if [ $# -eq 0 ]
then
echo "No argument supplied. Please specify the message to send."