adamtabrams / change

A simple tool that automates generating and updating a changelog
GNU General Public License v3.0
75 stars 8 forks source link

Base64 Issue #2

Closed cooltrooper closed 3 years ago

cooltrooper commented 3 years ago
base64: invalid option -- 'D'
Try 'base64 --help' for more information.
{
  "message": "Bad credentials",
  "documentation_url": "https://docs.github.com/rest"
}

changing it to -d in the script solves the problem, line 109?

adamtabrams commented 3 years ago

@cooltrooper Thanks for creating an issue for this! My system is actually using the BSD version of the base64 program which is why I used '-D' for decoding:

> base64 --help                                               
Usage:  base64 [-hvD] [-b num] [-i in_file] [-o out_file]
  -h, --help     display this message
  -D, --decode   decodes input
  -b, --break    break encoded string into num character lines
  -i, --input    input file (default: "-" for stdin)
  -o, --output   output file (default: "-" for stdout)

I didn't realize that the GNU version uses a different argument. It looks like using --decode should give the proper behavior across both systems. I'll change it to that.