<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/3c2184d87bb996eb5eac459c3075f36f8b587c97">https://github.com/macports/mpbb/commit/3c2184d87bb996eb5eac459c3075f36f8b587c97</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 3c2184d Use short-circuit 'or' in selfupdate conditional
</span>3c2184d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 3c2184d87bb996eb5eac459c3075f36f8b587c97
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon May 27 20:43:46 2019 +1000
<span style='display:block; white-space:pre;color:#404040;'> Use short-circuit 'or' in selfupdate conditional
</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 e72620d..3e5a44a 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 -o $(($(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) - $(date -r selfupdate.timestamp +%s))) -gt 86400 ]]; then
</span> "${option_prefix}/bin/port" -d selfupdate --no-sync || return
touch selfupdate.timestamp
fi
</pre><pre style='margin:0'>
</pre>