diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 09:34:01 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 09:34:01 +0200 |
commit | 465d5db06e56dc21072a8ff01258f6815d340b00 (patch) | |
tree | ae16ecf2f980b054caa2f97f48e8fa5f22b768a6 /bin/ak-repositories | |
parent | 1cb6c8bef840a96baa37392e9833a7674f805a83 (diff) | |
download | arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.gz arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.bz2 arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.zip |
new lib _ak_ipfs
Diffstat (limited to 'bin/ak-repositories')
-rwxr-xr-x | bin/ak-repositories | 24 |
1 files changed, 12 insertions, 12 deletions
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 |