Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
omicron
VuhDo
Commits
e8570d7d
Commit
e8570d7d
authored
5 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Fix for alpine/busybox date command
parent
fe747241
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
.release/release.sh
.release/release.sh
+3
-5
No files found.
.release/release.sh
View file @
e8570d7d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment