From f9efa97bd9b4c894c804e4fdfaabc0d133899df7 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 29 Feb 2024 19:15:04 -0500 Subject: [PATCH] Removed few spurious spaces before indentation tabs -- for consistent indentation --- contrib/incremental_backup/dump.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/incremental_backup/dump.sh b/contrib/incremental_backup/dump.sh index 9cc2da5e..7eb7932f 100755 --- a/contrib/incremental_backup/dump.sh +++ b/contrib/incremental_backup/dump.sh @@ -153,11 +153,11 @@ function dump { fi echo "Dumping messages from \"$PREVIOUS_DATE\" to \"$CURRENT_DATE\"" - $SLACKDUMP_B -download -r json "$FROM_FLAG" "$TO_FLAG" -base "$BASE_DIR" "$CHANNEL_ID" > "$LOG_FILE" 2>&1 - - local NEW_MESSAGE_COUNT + $SLACKDUMP_B -download -r json "$FROM_FLAG" "$TO_FLAG" -base "$BASE_DIR" "$CHANNEL_ID" > "$LOG_FILE" 2>&1 + + local NEW_MESSAGE_COUNT NEW_MESSAGE_COUNT=$($JQ_B -r '.messages | length' "$CHANNEL_FILE") - echo "Found '$NEW_MESSAGE_COUNT' new message(s)." + echo "Found '$NEW_MESSAGE_COUNT' new message(s)." # If we have an old file... if [ -r "$CHANNEL_FILE_OLD" ]; then