Skip to content

Conversation

@sheridans
Copy link

Fixes #137

Tested on FreeBSD 12.0, $OSTYPE is reported as freebsd12.0, script expects FreeBSD12.0

Tested on FreeBSD 12.0, $OSTYPE is reported as freebsd12.0, script expects FreeBSD12.0
@mrPsycho
Copy link

mrPsycho commented May 3, 2021

it can be done in single string:

freebsd*|FreeBSD*) date -j -f "%Y-%m-%d-%H%M%S" "$1" "+%s" ;;

i also noticed this issue, when tried this script on TrueNAS.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FreeBSD 11.2: "[WARNING] Could not parse date"

2 participants