diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-07-24 11:07:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-07-24 11:07:11 -0300 |
commit | 9a4954b7c2dfd3f5096eecbe340162dc82fd1203 (patch) | |
tree | aaced9fd556f17ecb0c715f235fcb7cc6a26cc48 | |
parent | 3311f24e9ccb74944e2a74e15aeaaeed9edef81f (diff) | |
download | scripts-9a4954b7c2dfd3f5096eecbe340162dc82fd1203.tar.gz scripts-9a4954b7c2dfd3f5096eecbe340162dc82fd1203.tar.bz2 |
Adds export-pad
-rwxr-xr-x | export-pad | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/export-pad b/export-pad new file mode 100755 index 0000000..fd17d2a --- /dev/null +++ b/export-pad @@ -0,0 +1,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 |