#!/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