summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/tips/publishing_your_files_to_the_public.mdwn5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/tips/publishing_your_files_to_the_public.mdwn b/doc/tips/publishing_your_files_to_the_public.mdwn
index 09f83bce0..d2c074503 100644
--- a/doc/tips/publishing_your_files_to_the_public.mdwn
+++ b/doc/tips/publishing_your_files_to_the_public.mdwn
@@ -67,10 +67,9 @@ Example:
Assuming all files in the current directory are available on S3, this will register the public S3 url for the file in git-annex, making it available for everyone *through git-annex*:
<pre>
-bucket=yourbucketname
-find * -type l | while read file ; do
+git annex find --in public-s3 | while read file ; do
key=$(git annex lookupkey $file)
- echo $key https://$bucket.s3.amazonaws.com/$key
+ echo $key https://public-annex.s3.amazonaws.com/$key
done | git annex registerurl
</pre>