Skip to content

date error on macOS #144

@ghost

Description

On macOS the function in the get_token.sh script will throw an error:

130-zsh%  date "+%c" --date='1 day'
date: illegal time format
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... 
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]

A macOS user can use GNU date by installing via homebrew:
brew install coreutils
And then changing the command in the script from date to gdate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions