Skip to content

Conversation

@Matheus3007
Copy link

Issue

Depending on the Mac device, the Mapfile may not be found, as shown in this issue. The message presented to the user is as below:

Bash Screensavers v0.0.27 (Mystic Shine)

./screensaver.sh: line 79: mapfile: command not found
  1 .

(Press ^C to exit)

Choose your screensaver:
404 Screensaver Not Found:


Oh no! Screensaver had trouble! Error code: 1

Solution

This quick fix adds a conditional to avoid the "Not Found" error on Macs without Mapfile, and also initializes the screensavers list as to avoid it starting with an empty item.

@jzellis
Copy link

jzellis commented Oct 28, 2025

I tested it on an M1 running Sequoia with ZSH as my default shell and it works perfectly.

for greater support on older systems
@attogram
Copy link
Owner

attogram commented Nov 1, 2025

thanks! I added a refactor -- we just use old fashioned read, and remove mapfile entirely.

@attogram attogram merged commit fe2cac5 into attogram:main Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants