diff options
author | msglm <msglm@techchud.xyz> | 2023-10-06 02:09:54 -0500 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-10-06 02:09:54 -0500 |
commit | 671654c3739d6d927a799afdbe0e032e3fe325ce (patch) | |
tree | 790071ada54a7c1cadb4d0167245ec6ade961a39 | |
parent | 277555941045dd985e62f485cc0e970527d072af (diff) | |
download | ipfs-archive-manager-671654c3739d6d927a799afdbe0e032e3fe325ce.tar.gz ipfs-archive-manager-671654c3739d6d927a799afdbe0e032e3fe325ce.tar.bz2 ipfs-archive-manager-671654c3739d6d927a799afdbe0e032e3fe325ce.zip |
quiet about what can't be removedv1.0.3
-rwxr-xr-x | ipfs-archive-manager | 4 |
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" |