-
-
Save colmjude/715701 to your computer and use it in GitHub Desktop.
Pull tiddlyspace tiddlers down
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# cheap and cheerful pushing of files to TiddlySpace, | |
# authorization taken from the variable TIDDLYSPACE_AUTH which for me is: | |
# export TIDDLYSPACE_AUTH='-u myuser:mypass' | |
# usage: sts spacename file1 file2 .. | |
space="$1" ; shift | |
tiddler="$1" ; | |
# public/private | |
pp=public | |
set -x | |
curl -X GET http://${space}.tiddlyspace.com/bags/${space}_$pp/tiddlers/${tiddler}.txt -H "Accept: application/json" > $tiddler.tid | |
set +x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment