#!/bin/bash PROGRAM="$(basename $0)" ipfs --timeout=10s cat $1 if [ "$?" -ne "0" ] then ak-logthis "$PROGRAM" "ERROR" "Failed to cat $1" exit 1 fi