From 142e8630eb24fee91954dfbd94a890e8d68689f0 Mon Sep 17 00:00:00 2001 From: filifa Date: Thu, 1 Aug 2024 18:29:44 -0500 Subject: [PATCH] close pipe after every post --- mlbplaypost.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlbplaypost.sh b/mlbplaypost.sh index 4fd4fa7..79ebd15 100755 --- a/mlbplaypost.sh +++ b/mlbplaypost.sh @@ -31,5 +31,5 @@ fi # format each row of data retreived from the select statement and pipe to toot fmt='printf "%s\n\n%s %s\n#%s %s\n#%s %s\n\n#baseball #live\n", $1, $2, $3, $4, $5, $6, $7' -post="toot post --using $account" -sqlite3 $db < postplays.sql | awk -F  "{$fmt | \"$post\"}" +post="\"toot post --using $account\"" +sqlite3 $db < postplays.sql | awk -F  "{$fmt | $post; close($post)}"