From 479a49e58e7870d6906d7c64b632389e2e7bdcee Mon Sep 17 00:00:00 2001 From: Christina Harlow Date: Wed, 1 Sep 2021 11:28:43 -0400 Subject: [PATCH] revert etherpad manage bash script to working state --- etherpad-manage.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etherpad-manage.sh b/etherpad-manage.sh index a85c4f7..07dc649 100644 --- a/etherpad-manage.sh +++ b/etherpad-manage.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -euxo pipefail + min_stamp=$(date -d "-15 days" +%s) count=0 @@ -13,8 +13,9 @@ for p in $(curl -s --data-urlencode "apikey=$ETHERPAD_API_KEY" "http://localhost --data-urlencode "apikey=$ETHERPAD_API_KEY" \ --data-urlencode "padID=$p" \ "http://localhost:$PORT/api/1/deletePad" - count = $(( $count + 1 )) + ((count++)) fi done -echo "Identified and deleted $count pads" +echo "Identified $count pads for removal" +