Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
0bc55661
Unverified
Commit
0bc55661
authored
Jul 25, 2018
by
neil
Committed by
GitHub
Jul 25, 2018
Browse files
Merge pull request #1746 from j-c-m/time2str-dev
BSD fix _time2str()
parents
411b342a
cb115809
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
0bc55661
...
...
@@ -1374,17 +1374,17 @@ _url_replace() {
}
_time2str
()
{
#
Linux
if
date
-u
-
d
@
"
$1
"
2>/dev/null
;
then
#
BSD
if
date
-u
-
r
"
$1
"
2>/dev/null
;
then
return
fi
#
BSD
if
date
-u
-
r
"
$1
"
2>/dev/null
;
then
#
Linux
if
date
-u
-
d
@
"
$1
"
2>/dev/null
;
then
return
fi
#Soaris
#So
l
aris
if
_exists adb
;
then
_t_s_a
=
$(
echo
"0t
${
1
}
=Y"
| adb
)
echo
"
$_t_s_a
"
...
...
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