From 333ab13b5e8bc0450bd41c06c580fe17299249bf Mon Sep 17 00:00:00 2001 From: sudo-shashank Date: Tue, 7 May 2024 15:09:29 +0530 Subject: [PATCH] fix lint --- ansible/archival-snapshots/resources/main.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ansible/archival-snapshots/resources/main.sh b/ansible/archival-snapshots/resources/main.sh index 8b5f0cfee..04a1dfb36 100755 --- a/ansible/archival-snapshots/resources/main.sh +++ b/ansible/archival-snapshots/resources/main.sh @@ -27,10 +27,8 @@ while ((LATEST_EPOCH - CURRENT_EPOCH > 30000)); do echo "Next Height: $NEW_EPOCH" # Export full snapshot to generate lite and diff snapshots - EXPORT_OUTPUT=$($FOREST_CLI snapshot export --tipset "$NEW_EPOCH" --depth 30000) - echo "Downloaded $EXPORT_OUTPUT" - NEW_SNAPSHOT=$(echo "$EXPORT_OUTPUT" | grep forest | awk -F'[:]' '{print $1}') - + $FOREST_CLI snapshot export --tipset "$NEW_EPOCH" --depth 30000 > export.log + NEW_SNAPSHOT=$(grep forest export.log | awk -F'[:]' '{print $1}') # Generate and upload lite snapshot if [ ! -f "$LITE_SNAPSHOT_DIR/$NEW_SNAPSHOT" ]; then