genlog
genlog copied to clipboard
get error from `declare -A`
bin/genlog: line 16: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
This is on macOS Big Sur 11.2.1, running in a standard zsh shell (though you'd think that wouldn't matter because of the genlog file's shabang)
I changed the shebang to /bin/sh
, therefore it should work on all systems, can you trying downloading the script again please ?
Nope, still get the same error.
$ genlog.sh b8390a67 HEAD
# CHANGELOG
## 4.0.4
bin/genlog.sh: line 93: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
edit: though on a different line of the script now, so as a developer I would call that progress! Unless you just happen to have rearranged some stuff.
Maybe I forgot to add it in the README, but the program no longer works that way, it works with genlog.sh [tag]
.
But if you have the previous version, yes the code has been reorganized in order to limit code duplication.
ah I see. Even so, I just used the current version and still got an error:
$ bin/genlog.sh 2022c297
# 2022c297 - 04/03/2021
bin/genlog.sh: line 30: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
Try running sh bin/genlog.sh [tag]
.