Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Bèr Kessels 22c396cab1 Merge branch 'release/0.5.2' 2 лет назад
LICENSE Add LICENSE 3 лет назад
README.md Add usage and installation to README 3 лет назад
wget-to-ipfs.sh Ensure we create a directory with filenames extracted from the URL 2 лет назад


wget to IPFS

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

 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/.