robvanderleek / mudslide

Send WhatsApp messages from the command-line
ISC License
120 stars 12 forks source link

Mudslide in bash script with variables #77

Closed SproAdmin closed 5 months ago

SproAdmin commented 5 months ago
          Hi there,

I'm trying to use Mudslide in a bash script (ubuntu 22.04) as follows:

!/bin/bash

number="4312345678910" content="hello world 111" npx mudslide send $number "hello world 111" npx mudslide send $number $content

The first mudslide commands sends: hello world 111 The second mudslide command sends: 'hello

Could anyone tell me, what I#m doing wrong? Thanx and regards Volkmar

Originally posted by @SproAdmin in https://github.com/robvanderleek/mudslide/issues/76#issuecomment-1893570992

robvanderleek commented 5 months ago

I think this is a shell issue, not a Mudslide issue. Perhaps it works if you change the last line of the bash script to:

npx mudslide send $number "${content}"
SproAdmin commented 5 months ago

Thank you, this was exactly the issue. Solved. greez Volkmar