diff options
Diffstat (limited to 'bin/ak-ipfs-swarm-peers')
-rwxr-xr-x | bin/ak-ipfs-swarm-peers | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ak-ipfs-swarm-peers b/bin/ak-ipfs-swarm-peers index d906ec3..b1890be 100755 --- a/bin/ak-ipfs-swarm-peers +++ b/bin/ak-ipfs-swarm-peers @@ -1,2 +1,8 @@ #!/bin/bash +PROGRAM="$(basename $0)" ipfs swarm peers +if [ "$?" != "0" ] +then + ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to get list of peers" + exit 1 +fi |