diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-04-03 00:24:49 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-04-03 00:24:49 +0300 |
commit | 9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1 (patch) | |
tree | 5f16ff3c7506b653862e0171d71163074f67c96e /bin/ak-profile | |
parent | fe1fb88889b2c3949383c254f3058da24ba5e3f2 (diff) | |
download | arching-kaos-tools-9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1.tar.gz arching-kaos-tools-9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1.tar.bz2 arching-kaos-tools-9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1.zip |
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
Diffstat (limited to 'bin/ak-profile')
-rwxr-xr-x | bin/ak-profile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ak-profile b/bin/ak-profile index 1aa6e9c..63df6fd 100755 --- a/bin/ak-profile +++ b/bin/ak-profile @@ -42,7 +42,7 @@ show(){ if [ ! -z $1 ] then logit "[INFO]" "Working with $1" - ipfs cat $(echo $(ipfs cat $1) | jq '.ipfs' -r) + ak-ipfs-cat $(echo $(ak-ipfs-cat $1) | jq '.ipfs' -r) else echo "No DATA provided" exit 1 @@ -75,7 +75,7 @@ EOF if [ $? == 0 ] then echo "Added successfully... proceeding" - IPFS_FILE=$(ipfs add -q $ZPROPERTY_FILE) + IPFS_FILE=$(ak-ipfs-add $ZPROPERTY_FILE) echo "Prop writting,,, $IPFS_FILE" add $ZPROPERTY_KEY echo "Adding to git repo..." @@ -167,10 +167,10 @@ add(){ if [ -f $ZPROFILEDIR/$1 ]; then FILE="$ZPROFILEDIR/$1" echo "Adding from " $FILE - FILE_IPFS_HASH=$(ipfs add -q $FILE) + FILE_IPFS_HASH=$(ak-ipfs-add $FILE) FILE_SIGN_FILE=$(pwd)/$1".asc" gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE - FILE_SIGNATURE=$(ipfs add -q $FILE_SIGN_FILE) + FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) cat > data <<EOF { "datetime":"$(date -u +%s)", @@ -183,7 +183,7 @@ EOF exit 2 fi - pack_z_block "profile/add" data + ak-pack_z_block "profile/add" data if [ "$?" -ne 0 ] then echo "error??" |