ttscoff / bunch

Documentation repository for Bunch.app
https://bunchapp.co
116 stars 5 forks source link

Embedded shell scripts crash Bunch #264

Closed ihatemornings closed 2 years ago

ihatemornings commented 2 years ago

In the last version or two of the beta (I’m on 1.4.12, MacOS 12.5.1) launching a bunch with an embedded shell script crashes Bunch completely. The last line in the Bunch log is always something like:

2022-10-17 10:20:19: ⚪[Repro] Running Shell Script (/var/folders/fk/vd1l328107g4qbw01j0k7ywr0000gn/T/TemporaryItems/NSIRD_Bunch\ Beta_3gs1KN/C14F63DC-C939-41B8-AA50-AFBB2CA95B5F.sh)

The bunch I’m using to repro the bug is (minus the indentation – triple backticks in markdown code blocks are tricky!):

    $ ```
    #!/bin/zsh

This syntax also triggers the same crash:

<<EOFILE

!/bin/zsh

EOFILE


As does this:

<<EOFILE

!/bin/bash

EOFILE



Embedded shell scripts definitely used to work for me until a couple of beta versions ago.
ttscoff commented 2 years ago

Found the issue, new beta release forthcoming.

-Brett

On 17 Oct 2022, at 4:29, Ben Walker wrote:

In the last version or two of the beta (I’m on 1.4.12, MacOS 12.5.1) launching a bunch with an embedded shell script crashes Bunch completely. The last line in the Bunch log is always something like:

2022-10-17 10:20:19: ⚪[Repro] Running Shell Script 
(/var/folders/fk/vd1l328107g4qbw01j0k7ywr0000gn/T/TemporaryItems/NSIRD_Bunch\ 
Beta_3gs1KN/C14F63DC-C939-41B8-AA50-AFBB2CA95B5F.sh)

The bunch I’m using to repro the bug is (minus the indentation – triple backticks in markdown code blocks are tricky!):

    $ ```
    #!/bin/zsh

This syntax also triggers the same crash:

<<EOFILE

!/bin/zsh

EOFILE


As does this:

<<EOFILE

!/bin/bash

EOFILE



Embedded shell scripts definitely used to work for me until a couple 
of beta versions ago.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/ttscoff/bunch/issues/264
You are receiving this because you are subscribed to this thread.

Message ID: ***@***.***>
ihatemornings commented 2 years ago

Thanks for the quick fix! My embedded shell scripts work again in version 1.4.12 (169).