diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-07-30 20:08:57 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-07-30 20:08:57 +0300 |
commit | 58b888574923c46c3854090c5cd5d8106e39d46a (patch) | |
tree | 3aa553a5e8f5b63e0fc01f53d73175da63f46016 /bin/ak-ipfs-name-publish | |
parent | d512be24515b0afb669578d16576fe2db840990b (diff) | |
download | arching-kaos-tools-58b888574923c46c3854090c5cd5d8106e39d46a.tar.gz arching-kaos-tools-58b888574923c46c3854090c5cd5d8106e39d46a.tar.bz2 arching-kaos-tools-58b888574923c46c3854090c5cd5d8106e39d46a.zip |
Added checks to detect success and failure of underlying commands being run
Diffstat (limited to 'bin/ak-ipfs-name-publish')
-rwxr-xr-x | bin/ak-ipfs-name-publish | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ak-ipfs-name-publish b/bin/ak-ipfs-name-publish index d1e10cf..d1a938c 100755 --- a/bin/ak-ipfs-name-publish +++ b/bin/ak-ipfs-name-publish @@ -1,3 +1,9 @@ #!/bin/bash +PROGRAM="$(basename $0)" ipfs name publish "$1" "$2" +if [ "$?" != "0" ] +then + ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to get $1" + exit 1 +fi |