Skip to content

Does not run under bash on MacOS (because mapfile is missing) #92

@jdshaffer

Description

@jdshaffer

As is, this program (script) will not work under MacOS with the built-in bash shell as it does not include mapfile.

Here is a workaround that DOES work... replace each of the three occurrences of mapfile with this equivalent code:

#mapfile -t screensavers < <(peak_into_the_gallery)
screensavers=() 
    while IFS= read -r line; do
        screensavers+=("$line")
    done < <(peak_into_the_gallery)

These changes work on my up-to-date MacOS install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions