pubsub_setup: touch/create log if it does not exist yet - pubsubhubbubblub - pubsubhubbub client implementation
HTML git clone git://git.codemadness.org/pubsubhubbubblub
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit ded5d328be08e3616af355302645a98473f68bc0
DIR parent 2aaefbe2e7c9064bcae3b626f80377666bb40aed
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 28 May 2022 13:02:26 +0200
pubsub_setup: touch/create log if it does not exist yet
Diffstat:
M pubsub_setup | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/pubsub_setup b/pubsub_setup
@@ -79,8 +79,8 @@ mkdir -p "config/${feedname}"
mkdir -p "feeds/${feedname}"
mkdir -p "tmp/${feedname}"
-# general log
-touch "log"
+# create log if it does not exist.
+test -f "log" || touch "log"
if test "${dosubscribe}" = "1"; then
f="config/${feedname}/hub"