Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape backslash in notification message for macOS #6

Merged

Conversation

mrymtsk
Copy link
Contributor

@mrymtsk mrymtsk commented Jul 17, 2019

This fixes #1. Double quotes must be escaped in AppleScript, therefore they should be \\\" in echo.

text="$(echo -e "\"$command\" has completed\n(Total time: $elapsed seconds)")"

@MichaelAquilina
Copy link
Owner

I have an idea of how to simplify this but happy to merge this for now to get the fix out quickly

@MichaelAquilina MichaelAquilina merged commit d6d00f5 into MichaelAquilina:master Jul 17, 2019
@mrymtsk
Copy link
Contributor Author

mrymtsk commented Jul 17, 2019

Yeah I agree that this is not the best way. Thanks anyway!

Sent with GitHawk

@MichaelAquilina
Copy link
Owner

Just pushed a change to simplify this in master. Would you mind re-testing on the latest version to make sure it still works?

@mrymtsk
Copy link
Contributor Author

mrymtsk commented Jul 17, 2019

Works as expected.

Sent with GitHawk

@MichaelAquilina
Copy link
Owner

Thanks for checking mrymystk! :D

@mrymtsk mrymtsk deleted the mac-notification-fix branch July 18, 2019 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A "syntax error" on OS X
2 participants