From 1f2dc4ab8fddf6611b9ceec10ccc9710a6140137 Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 5 Apr 2021 00:30:20 +0200 Subject: [PATCH] wordpress do/done channel --- zen/wordpress_channel.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zen/wordpress_channel.sh b/zen/wordpress_channel.sh index c9867a5..99d5eec 100755 --- a/zen/wordpress_channel.sh +++ b/zen/wordpress_channel.sh @@ -45,13 +45,13 @@ do cd /var/www/wordpress/ isWPuser=$(wp user list | grep "$xzuid") wp post create --post_author="$xzuid" --post_content="

$title

" --post_title="$title" --post_excerpt="$g1pubsource" --tags_input="$genres" --porcelain - # REPLY done=1 + # REPLY IN ~/.zen/ipfs/.$ipfnodesource/astroport/wordpress/$mediakey/done responsedir="$(echo "$wpcall" | sed 's/ipfs_swarm/ipfs/g')" mkdir -p $responsedir echo "1" > $responsedir/done fi ## I am the destination of that "done / not todo" wpcall - [[ $isdone && ! $istodo ]] && echo rm -Rf ~/.zen/ipfs/.$ipfnodesource/astroport/wordpress/$mediakey/done + [[ $isdone && ! $istodo ]] && echo rm -Rf ~/.zen/ipfs/.$ipfnodesource/astroport/wordpress/$mediakey else ## I am the source of that "done" wpcall remove "do"