sheagcraig / yo

Send Notification Center messages from the command line
Apache License 2.0
383 stars 44 forks source link

-B, --bash-action doesn't do anything on M1 Mac #56

Open GentleHoneyLover opened 3 years ago

GentleHoneyLover commented 3 years ago

Hello,

After moving to the M1 Mac, the -B argument stopped working.

Example of how I'm using yo (works on Intel Mac):

yo.app/Contents/MacOS/yo -t 'Time to check for updates' -s 'Ready to do it now?' -o No -b Yes -B "/path/to/script.sh"

The same exact thing doesn't work on M1 Mac. I even rebuilt yo to be native Apple Silicone.

Tried doing this as a test — no test.txt file created

/path/to/yo.app/Contents/MacOS/yo -t 'Time to check for updates' -s 'Ready to do it now?' -o No -b Yes -B "touch ~/Desktop/text.txt"

Is there a fix (or at least a workaround)?

Thanks!