aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-ipfs-add
blob: 63862b7d426546f8c063d2ad912f8b2d3a086f39 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
PROGRAM="$(basename $0)"
# Receives a file
# Returns a hash
ipfs add -Qr "$1"
if [ "$?" != "0" ]
then
    ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to add $1"
    exit 1
fi