blob: 4cedcecfc0e6d4dfd5c58756c09a9d0176c0f621 (
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
|