summarylogtreecommitdiffstats
path: root/ipfs-dlagent-quit.sh
blob: 27c732a7ba19fe2244166babb56e02c638c000df (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

_get() {
  _uri="${1}"
  ipfs cat "${_uri}" > "${_out}"
  ipfs shutdown
}

_uri="${1}"
_out="${2}"
_get "${_uri}" "${_out}"