From 671654c3739d6d927a799afdbe0e032e3fe325ce Mon Sep 17 00:00:00 2001 From: msglm Date: Fri, 6 Oct 2023 02:09:54 -0500 Subject: quiet about what can't be removed --- ipfs-archive-manager | 4 ++-- 1 file 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" -- cgit v1.2.3