From cb24229e55a3d5e72d3b80fa3f3871374dabf8c0 Mon Sep 17 00:00:00 2001 From: Boris Paing Date: Thu, 19 Mar 2020 02:05:25 +0100 Subject: [PATCH] forgot to uncomment... --- process-likes-g1tx.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/process-likes-g1tx.sh b/process-likes-g1tx.sh index d7263bb..00b9d9f 100755 --- a/process-likes-g1tx.sh +++ b/process-likes-g1tx.sh @@ -352,7 +352,7 @@ do #printf '%s\n' "silkaj -af --file ~/.ssb/secret.dunikey tx --outputs[$n] $g1_author --amountUD $author_amount --comment "Thx for your cool posts on ScuttleButt" - #silkaj -p "$duniter_server" -af --file ~/.ssb/secret.dunikey tx --outputs[$n] $g1_author --amountUD $author_amount --comment "Thx for your cool posts on ScuttleButt" -y 2>/dev/null + silkaj -p "$duniter_server" -af --file ~/.ssb/secret.dunikey tx --outputs[$n] $g1_author --amountUD $author_amount --comment "Thx for your cool posts on ScuttleButt" -y 2>/dev/null printf "\n${bold}%s UDĞ1${normal} sent to %s!\n\n" "$author_amount" "${author_name:1:-1}" @@ -363,12 +363,12 @@ do exit 1 fi - #if ! mv "$state_file"~ "$state_file" - #then - # msg_id=$(printf %s "$msg" | jq -r .key) - # printf 'Unable to write to state file. Update state file manually to prevent %s from being processed twice.\n' "$msg_id" >&2 - # exit 1 - #fi + if ! mv "$state_file"~ "$state_file" + then + msg_id=$(printf %s "$msg" | jq -r .key) + printf 'Unable to write to state file. Update state file manually to prevent %s from being processed twice.\n' "$msg_id" >&2 + exit 1 + fi #sleep 20 # DO NOT OVER CHARGE DUNITER done