Skip to content

date: invalid option -- 'D' #22

Description

@karawitan

Hello,

thanks for sharing this very useful set of scripts.
When running tracker-add-auto-router.sh, I hit the following issue:

m1:tracker-add kalou$ ./tracker-add-auto-router.sh
date: illegal option -- d
usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]]
            [-I[date | hours | minutes | seconds]]
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
m1:tracker-add kalou$

date -D is not supported by:

  • gdate (gnu date)
m1:tracker-add kalou$ /opt/homebrew/Cellar/coreutils/9.1/bin/gdate -D
/opt/homebrew/Cellar/coreutils/9.1/bin/gdate: invalid option -- 'D'
Try '/opt/homebrew/Cellar/coreutils/9.1/bin/gdate --help' for more information.
  • the default date utility for Darwin
m1:tracker-add kalou$ type date
date is hashed (/bin/date)
m1:tracker-add kalou$ date -D
date: illegal option -- D
usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]]
            [-I[date | hours | minutes | seconds]]
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
  • the date utility included in the docker container:
m1:tracker-add kalou$ docker exec -it $(docker run --net=host -d -e HOSTPORT=localhost:9091 -e TR_AUTH=user:password --name=transmission-tracker-add andrewmhub/transmission-tracker-add:latest) bash
bash: /dev/null/.bashrc: Not a directory
bash-5.1$ date -D
date: invalid option -- 'D'
Try 'date --help' for more information.

How may we fix this ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions