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-repositories | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'bin/ak-repositories') diff --git a/bin/ak-repositories b/bin/ak-repositories index 3cd415f..7d3bf5a 100755 --- a/bin/ak-repositories +++ b/bin/ak-repositories @@ -18,9 +18,9 @@ import(){ then cd $PROJECT.git git repack -a - IPFS="$(ipfs add -Qr .)" - ipfs key gen "$PROJECT.git" - ipfs name publish --key="$PROJECT.git" /ipfs/$IPFS + IPFS="$(ak-ipfs-add .)" + ak-ipfs-key-gen "$PROJECT.git" + ak-ipfs-name-publish --key="$PROJECT.git" /ipfs/$IPFS cd $HOME/bare else echo "$PROJECT not a git repo" @@ -40,8 +40,8 @@ update(){ cd $BARE git pull git repack -a - IPFS="$(ipfs add -Qr .)" - ipfs name publish --key="$BARENAME" /ipfs/$IPFS + IPFS="$(ak-ipfs-add .)" + ak-ipfs-name-publish --key="$BARENAME" /ipfs/$IPFS echo "DONE" else echo "NO BARE TO UPDATE" @@ -55,8 +55,8 @@ update(){ cd "$PROJECT" git pull git repack -a - IPFS="$(ipfs add -Qr .)" - ipfs name publish --key="$PROJECT" /ipfs/$IPFS + IPFS="$(ak-ipfs-add .)" + ak-ipfs-name-publish --key="$PROJECT" /ipfs/$IPFS cd $BAREDIR done fi @@ -101,18 +101,18 @@ add(){ then cd $BAREGITDIR git repack -a - IPFS="$(ipfs add -Qr .)" - try=ipfs key gen "$PROJECT.git" + IPFS="$(ak-ipfs-add .)" + try=ak-ipfs-key-gen "$PROJECT.git" if [ $? == 0 ] then - ipfs name publish --key="$PROJECT.git" /ipfs/$IPFS + ak-ipfs-name-publish --key="$PROJECT.git" /ipfs/$IPFS cat > data <