summaryrefslogtreecommitdiffstats
path: root/logerrit
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-10 16:12:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-11 07:44:03 +0100
commit3646ab583736e6d5e2b3fb4d51857b4b6b777b45 (patch)
tree028f3f1b386b160c1521bc8954cf7563a8b47f03 /logerrit
parentUpdate git submodules (diff)
downloadcore-3646ab583736e6d5e2b3fb4d51857b4b6b777b45.tar.gz
core-3646ab583736e6d5e2b3fb4d51857b4b6b777b45.zip
and fix logerrit on linux again
after I broke it with commit 69959235c3094b811406f734e863a63fc61046c0 Date: Tue Mar 9 19:29:19 2021 +0200 adapt recent change to macOS Change-Id: Ib58e9903839143fdf6e84a04d532f70a8212f984 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112269 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'logerrit')
-rwxr-xr-xlogerrit2
1 files changed, 1 insertions, 1 deletions
diff --git a/logerrit b/logerrit
index fc30f918c17c..35a454c9267f 100755
--- a/logerrit
+++ b/logerrit
@@ -24,7 +24,7 @@ submit() {
fi
if [ "$BRANCH" = "master" ]; then
- if [ "$unamestr" = 'Linux' ]; then
+ if [[ "$(uname)" == *Linux* ]]; then
WEEKOLDDATE=$(date --date="7 days ago" +%s)
else
WEEKOLDDATE=$(date -v7d +%s) # BSD equivalent