yo icon indicating copy to clipboard operation
yo copied to clipboard

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

Open GentleHoneyLover opened this issue 3 years ago • 0 comments

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!

GentleHoneyLover avatar Sep 29 '21 16:09 GentleHoneyLover