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