<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository mpbb.
</pre>
<p><a href="https://github.com/macports/mpbb/commit/625de495165b703bc24d10377de2072c8fd07ee4">https://github.com/macports/mpbb/commit/625de495165b703bc24d10377de2072c8fd07ee4</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 625de49 Use stat to get file timestamp
</span>625de49 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 625de495165b703bc24d10377de2072c8fd07ee4
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon May 27 21:15:00 2019 +1000
<span style='display:block; white-space:pre;color:#404040;'> Use stat to get file timestamp
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Seems date -r only accepts a file on recent OS versions.
</span>---
mpbb-selfupdate | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mpbb-selfupdate b/mpbb-selfupdate
</span><span style='display:block; white-space:pre;color:#808080;'>index 3e5a44a..010a3ca 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mpbb-selfupdate
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mpbb-selfupdate
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,7 +52,7 @@ selfupdate() {
</span> fi
# selfupdate at most once every 24 hours
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if [[ ! -f selfupdate.timestamp || $(($(date +%s) - $(date -r selfupdate.timestamp +%s))) -gt 86400 ]]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [[ ! -f selfupdate.timestamp || $(($(date +%s) - $(stat -f %m selfupdate.timestamp))) -gt 86400 ]]; then
</span> "${option_prefix}/bin/port" -d selfupdate --no-sync || return
touch selfupdate.timestamp
fi
</pre><pre style='margin:0'>
</pre>