Open
Description
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
Labels
No labels