aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-ipfs-get
blob: ef8ba9472b709d811846cafb0756433755623e00 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
PROGRAM="$(basename $0)"
ipfs --timeout=10s get "$1"
if [ "$?" != "0" ]
then
    ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to get $1"
    exit 1
fi