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

View File

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