Japanese holiday (insipired by emasaka/jpholidayp)
Is it holiday today in Japan?
Recommend: Use with cron
Check "Is it holiday today?" in Japan.
No arguments, and no output. Reports as exit status:
- 0: holiday
- 1: not holiday
- 2: error
- Sunday and Saturday
- In holiday_jp
usages in crontab.
holiday_jp-go && some-command
Run some-command in holiday.
holiday_jp-go || some-command
Run some-command in weekday.
$ sudo rpm -ivh https://github.com/knqyf263/holiday_jp-go/releases/download/v0.0.1/holiday_jp-go_0.0.1_linux_amd64.rpm
$ wget https://github.com/knqyf263/holiday_jp-go/releases/download/v0.0.1/holiday_jp-go_0.0.1_linux_amd64.deb $ dpkg -i holiday_jp-go_0.0.1_linux_amd64.deb
Download binary from https://github.com/knqyf263/holiday_jp-go/releases