You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bèr Kessels 2ab2aef969 Merge tag 'v0.5.2' into develop 3 weeks ago
LICENSE Add LICENSE 1 year ago
README.md Add usage and installation to README 1 year ago
wget-to-ipfs.sh Ensure we create a directory with filenames extracted from the URL 3 weeks ago

README.md

wget to IPFS

PlaceBazaar tooling script to download a file and publish it to IPFS.

 ./wget-to-ipfs.sh
 Option -u (--url) requires an argument

  -u --url   [arg] URL to download. Required.
  -r --root  [arg] IPFS id of a directory to add the file to. Leave empty when you don't want to add the file to a directory.
  -t --temp  [arg] Location of tempfile. Default="/tmp/wget-to-ipfs"
  -v               Enable verbose mode, print script as it is executed
  -d --debug       Enables debug mode
  -h --help        This page
  -n --no-color    Disable color output

 Downloads a file from an URL and adds to IPFS.

Get going.

Install wget and ipfs. Ensure both are runnable.

Clone this repo:

git clone https://git.webschuur.com/placebazaar/wget-to-ipfs.git

Run it:

cd wget-to-ipfs
./wget-to-ipfs.sh --url="http://berk.es/berkes_pub.gpg"

Libraries used:

Bash script

Uses http://bash3boilerplate.sh/.