Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
-E parameter: Error Option -E requires a parameter #68
to address christianTF/LoxBerry-Plugin-LoxberryBackup#15 I have a question to the -E parameter.
To add the From address to sendmail, I call raspibackup with the -E parameter.
I'm sure, that this at some time did work, but currently it does not, and I have no idea how to use the
Can you give me advise.
Root cause is the new option parser which complaints about -r in
Ok, don't worry - I remove the -E parameter and the mails will be sent from root now.
It would be an option to directly provide a "from" parameter, as usually the sender always is root, and this never looks nice.
And I indeed was right that this was working in the past ;-)
Thanks for your effort!
That's a general issue with option parameters. So I created a fix https://github.com/framps/raspiBackup/blob/escaped_parameters/raspiBackup.sh.
You now have to start an option parameter with
@christianTF Please verify the fix (Take your time. I will roll in the fix in the next raspiBackup release)
I just got another user facing the same issue
Requiring \ in front of the parameter is a backward incompatible change which should be avoided. Therefore I added another workaround (2) and we have now: