-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
Error gitdumper.sh: line 25: declare: -n: invalid option #15
Comments
Hi, that's because zsh does not have "declare". Afaik this is a bash feature [0]. You should try: [0] https://stackoverflow.com/questions/10194861/bash-zsh-declare-oh-my EDIT: Sorry, didn't carefully read the issue (I'm on vacation... :)). I'm not sure, why the
|
Hi, Will try again next Monday by your advice. I meant I will try with the command which is only Edited:
I chmodded u+x the shell file and do the command with the same user. |
Hi, I finally get it resolved. The old version of Apple's built-in bash is the cause of all this.
After installing new bash from homebrew, everything seems to properly work now.
|
I am experiencing this issue while running
bash gitdumper.sh
(no param)It worked well on my other Fedora machine but on my macOS at work, it throws that error.
More details:
macOS 10.12
sh used: zsh (changed to bash but the same occurred)
Full error information:
The text was updated successfully, but these errors were encountered: