From 465d5db06e56dc21072a8ff01258f6815d340b00 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 09:34:01 +0200 Subject: new lib _ak_ipfs --- bin/ak-repositories | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'bin/ak-repositories') diff --git a/bin/ak-repositories b/bin/ak-repositories index c148a81..8dc2652 100755 --- a/bin/ak-repositories +++ b/bin/ak-repositories @@ -18,9 +18,9 @@ import(){ then cd $PROJECT.git git repack -a - IPFS="$(ak-ipfs-add .)" - ak-ipfs-key-gen "$PROJECT.git" - ak-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="$(ak-ipfs-add .)" - ak-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="$(ak-ipfs-add .)" - ak-ipfs-name-publish --key="$PROJECT" /ipfs/$IPFS + IPFS="$(_ak_ipfs_add .)" + _ak_ipfs_name_publish --key="$PROJECT" /ipfs/$IPFS cd $BAREDIR done fi @@ -100,11 +100,11 @@ add(){ then cd $BAREGITDIR git repack -a - IPFS="$(ak-ipfs-add .)" - try=ak-ipfs-key-gen "$PROJECT.git" + IPFS="$(_ak_ipfs_add .)" + try=_ak_ipfs_key_gen "$PROJECT.git" if [ $? == 0 ] then - ak-ipfs-name-publish --key="$PROJECT.git" /ipfs/$IPFS + _ak_ipfs_name_publish --key="$PROJECT.git" /ipfs/$IPFS printf '{"project":"%s.git","ipns":"%s"}' $PROJECT $try > data ak-zblock-pack "repos/add" $PWD/data echo "Done" @@ -116,11 +116,11 @@ add(){ } index(){ - ak-ipfs-key-list-full | grep -e '\.git' + _ak_ipfs_key_list_full | grep -e '\.git' } set-as-profile(){ - IPFS=$(ak-ipfs-add $REPOSTORE) + IPFS=$(_ak_ipfs_add $REPOSTORE) if [ $? == 0 ] then profile set repositories $IPFS -- cgit v1.2.3