Commit e8570d7d authored by Ivaria's avatar Ivaria
Browse files

Fix for alpine/busybox date command

parent fe747241
......@@ -58,11 +58,9 @@ fi
strtotime() {
value="$1" # datetime string
format="$2" # strptime string
if date --version &>/dev/null; then # gnu
date -d "$value" +%s
else # bsd
date -j -f "$format" "$value" "+%s"
fi
date -d "$value" +%s
}
# Script return code
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment