#!/bin/bash PROGRAM="$(basename $0)" ipfs files cp "$1" "$2" if [ "$?" != "0" ] then ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to copy $1 to $2" exit 1 fi