Skip to content

Commit 2f02ef7

Browse files
mr-ckinow
authored andcommitted
fix the dump script
1 parent ed06b44 commit 2f02ef7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dump.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
export TZ=C
3-
#set -e
3+
#set -ex
44

55
BASE=$1
66
if [ -z "$BASE" ]; then
@@ -16,8 +16,8 @@ if [ -z "$DIR" ]; then
1616
DIR=`pwd`
1717
fi
1818

19-
URL="${BASE}/workflows.json?page=0&size=100000000"
19+
URL="${BASE}/workflows?page=0&size=100000000"
2020
FILE=${DIR}/`date --iso-8601=seconds | sed s/://g`.json
21-
curl --silent --show-error --output $FILE $URL
21+
curl --silent --show-error --header "accept: application/json" --output $FILE $URL
2222
gzip $FILE
2323
echo $FILE

0 commit comments

Comments
 (0)