diff options
Diffstat (limited to 'bin/ak-ipfs-name-resolve')
-rwxr-xr-x | bin/ak-ipfs-name-resolve | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ak-ipfs-name-resolve b/bin/ak-ipfs-name-resolve index 1f7ea93..6368e19 100755 --- a/bin/ak-ipfs-name-resolve +++ b/bin/ak-ipfs-name-resolve @@ -1,3 +1,9 @@ #!/bin/bash +PROGRAM="$(basename $0)" ipfs name resolve "$1" +if [ "$?" != "0" ] +then + ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to resolve $1" + exit 1 +fi |