Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer declare -A invalid option on MacOS #35

Open
merlos opened this issue Feb 5, 2024 · 1 comment
Open

Installer declare -A invalid option on MacOS #35

merlos opened this issue Feb 5, 2024 · 1 comment
Labels
bug Something isn't working installer

Comments

@merlos
Copy link
Member

merlos commented Feb 5, 2024

On MacOs running ./install-magasin.sh in zsh the following is displayed:

-----------
./install-magasin.sh: line 254: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
@merlos merlos added bug Something isn't working installer labels Feb 5, 2024
@merlos
Copy link
Member Author

merlos commented Feb 9, 2024

This happens when the installer is run without prepending zsh.

In a zsh terminal

% ./install/install-magasin.sh

displays the error. This is because the shebang in the script refers to bash. And bash is run

However if it is run like this:

% zsh ./install-magasin.sh

It does not happen.

Mac OS bash version is relatively old (3.2) compared with the version modern GNU/Linux distribution (5.x) nd does not support declare -A. Which is used to keep track of what commands are missing and need to be installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working installer
Projects
None yet
Development

No branches or pull requests

1 participant