From 9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 3 Apr 2023 00:24:49 +0300 Subject: Renaming to prefix convention, introduced ipfs wrappers so it can be easier to maintain, changes in filesplitter and filejoiner as they move sm submodule namespace... like there are namespaces in bash or something --- bin/ak-zchain-rebase | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/ak-zchain-rebase') diff --git a/bin/ak-zchain-rebase b/bin/ak-zchain-rebase index 96a59d1..4c7895a 100755 --- a/bin/ak-zchain-rebase +++ b/bin/ak-zchain-rebase @@ -20,24 +20,24 @@ rebase (){ if [ $? != 0 ]; then exit 1; fi echo "Make sure /zarchive folder exists within IPFS FS" - ipfs files mkdir /zarchive + ak-ipfs-files-mkdir /zarchive if [ $? != 0 ]; then echo "Folder already there"; fi echo "Archive the previous ZLATEST" - ipfs files cp /zlatest /zarchive/$(date -u +%s)-$(ipfs files stat /zlatest | head -n 1) + ak-ipfs-files-cp /zlatest /zarchive/$(date -u +%s)-$(ak-ipfs-files-stat /zlatest | head -n 1) if [ $? != 0 ]; then exit 1; fi echo "Removing previous /zlatest entry" - ipfs files rm /zlatest + ak-ipfs-files-rm /zlatest if [ $? != 0 ]; then exit 1; fi echo "Copying rebased ZLATEST" CZLATEST="$(cat $ZLATEST)" - ipfs files cp /ipfs/$CZLATEST /zlatest + ak-ipfs-files-cp /ipfs/$CZLATEST /zlatest if [ $? != 0 ]; then exit 1; fi echo "Publishing new (rebased) ZLATEST" - ipfs name publish --key=zchain /ipfs/$(cat $ZLATEST) + ak-ipfs-name-publish --key=zchain /ipfs/$(cat $ZLATEST) if [ $? != 0 ]; then exit 1; fi echo "Rebase was successful" -- cgit v1.2.3