gitbls / sdm

Raspberry Pi SD Card Image Manager
MIT License
437 stars 47 forks source link

Multiline plugin notes #228

Closed thk686 closed 3 months ago

thk686 commented 3 months ago

My custom plugin needs to print some text giving instruction for configuring the wireguard server. It is proving challenging to print multiple lines using plugin_addnote. I cannot seem to get the escaping correct. Is there a way this could be accomplished?

gitbls commented 3 months ago

bash supports a multi-line string format:

 plugin_addnote $"
this is line 1
this is line 2
"

Does this do what you want?

thk686 commented 3 months ago

Turns out I only needed one line. (Figured out a better way to configure wireguard on the command line.)