Skip to content

esd2iso.sh does not work with dash (is not POSIX) #39

@ilyagr

Description

@ilyagr

I experienced the following error:

Screenshot 2024-01-12 at 3 02 14 PM

I'm guessing this is because my /private/var/select/sh symlink points to dash as opposed to bash.

Indeed, pasting the esd2iso.sh script into www.shellcheck.net reveals a bunch of errors, most notably that declare and arrays are not part of POSIX sh.

You could either fix these issues, or you could change the shebang to /bin/bash.

Update: I changed the shebang in my CrystalFetch.App archive from /bin/sh to /bin/bash, and it seems that everything started to work.

Update 2: Another option might be to upgrade to https://github.com/Technogeezer50/esd2iso. It uses /bin/bash explicitly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions