Add parenthesis to function to make sure that parameter used is the one from the function call
This commit is contained in:
parent
d3de9f36aa
commit
cedd02c2df
@ -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."
|
||||||
|
Loading…
Reference in New Issue
Block a user