summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xipfs-archive-manager4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipfs-archive-manager b/ipfs-archive-manager
index 6c835ab..1b6778b 100755
--- a/ipfs-archive-manager
+++ b/ipfs-archive-manager
@@ -10,9 +10,9 @@ nameOfContent=$2
#The acutal content itself, could be a file or a folder
content=$3
-ipfs files mkdir /"$organizationalDirectory"
+ipfs files mkdir /"$organizationalDirectory" 2>/dev/null
contentHash=$(ipfs add --nocopy -Q -r "$content")
-ipfs files rm -r /"$organizationalDirectory"/"$nameOfContent"
+ipfs files rm -r /"$organizationalDirectory"/"$nameOfContent" 2>/dev/null
ipfs files cp /ipfs/"$contentHash" /"$organizationalDirectory"/"$nameOfContent"
## Update IPNS with new "$organizationalDirectory"