Add logic for lawn-update mk-all. - gopher-lawn - The gopher lawn gopher direct… | |
git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhf… | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
commit be3fc0543fc88a8676ffe4d64d60d67260ff186f | |
parent 4c8c9553a0ad705a581491269d058a282b9547c3 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Mon, 22 Feb 2021 12:49:30 +0100 | |
Add logic for lawn-update mk-all. | |
Diffstat: | |
M lawn-update | 2 +- | |
M mk-all | 12 +++++++++++- | |
2 files changed, 12 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/lawn-update b/lawn-update | |
@@ -32,6 +32,6 @@ cd "${lawngit}" | |
rm -f "${tmpfile}" | |
cd ${lawnbase} | |
-./mk-all 2>&1 >/dev/null | |
+./mk-all -u 2>&1 >/dev/null | |
diff --git a/mk-all b/mk-all | |
@@ -1,5 +1,15 @@ | |
#!/bin/sh | |
+doupdate=1 | |
+if [ "$1" = "-u" ]; | |
+then | |
+ doupdate=0 | |
+fi | |
+ | |
cat db/* categories/* | ./lawn-mower/lawn-mower.py | |
-./lawn-update | |
+ | |
+if [ $doupdate -eq 1 ]; | |
+then | |
+ ./lawn-update | |
+fi | |