8000 Which stat and date · Issue #1 · pforret/bumpkeys · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Which stat and date #1
Open
Open
@dracorp

Description

@dracorp

When I run the script I get:

$ bumpkeys  analyze
stat: invalid option -- 's'
Try 'stat --help' for more information.
date: '': No such file or directory
stat: invalid option -- 's'
Try 'stat --help' for more information.
date: '': No such file or directory
stat: invalid option -- 's'
Try 'stat --help' for more information.
date: '': No such file or directory
stat: invalid option -- 's'
Try 'stat --help' for more information.
date: '': No such file or directory
stat: invalid option -- 's'
Try 'stat --help' for more information.
date: '': No such file or directory
stat: invalid option -- 's'
Try 'stat --help' for more information.
date: '': No such file or directory

I don't see parameter -s for stat: https://www.man7.org/linux/man-pages/man1/stat.1.html

It shouldn't be:
key_day=$(date -r "$1" '+%Y-%m-%d') instead of key_day=$(date -r "$1" '+%Y-%m-%d')
The date's parameter -r points to a file: https://www.man7.org/linux/man-pages/man1/date.1.html

Tested on MacOS, not yet on a linux machine.

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

      0