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