aboutsummaryrefslogtreecommitdiff
path: root/server/testdata/cmd/get-entries
blob: b0075ab413f45432e0b2a2d7bd702661f140e55e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

set -eo pipefail
source config

first=0
second=0
if [[ ! -z $1 ]] && [[ ! -z $2 ]]; then
	first=$1
	second=$2
fi

info "downloading entries [$first, $second]"
curl -G -d "start=$first" -d "end=$second" $base_url/get-entries
newline