blob: fd17d2a325ef255e0f5137db39ac954abf6baece (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env bash
#
# Export etherpad content into a file.
#
# Parameters
URL="$1"
FILE="$2"
BASENAME="`basename $0`"
# Check
if [ -z "$FILE" ]; then
echo "usage: $BASENAME <url> <file>"
exit 1
fi
# Dispatch
torify curl $URL/export/txt > $FILE
|