matryer / xbar-plugins

Plugin repository for xbar (the BitBar reboot)
https://xbarapp.com
2.45k stars 1.04k forks source link

unknown parameter error if there is a space in the fully qualified file name #1626

Closed muzammilrehman closed 1 year ago

muzammilrehman commented 3 years ago

If the file name contains a space the error unknown parameter pops up. The fix is easy just add single quotes around the file name line 119

bash = "bash='#{File.expand_path(__FILE__)}' param1=#{option} param2=#{incident['id']}" unless incident['status'].eql?("test")

@frese

frese commented 3 years ago

Feel free to change it or do a PR. I'm not using this plugin any longer in favour of this project https://github.com/trustpilot/pagerduty-notifier 😄

muzammilrehman commented 3 years ago

I dont have permission to create PR, that was my initial step