aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-02 02:56:33 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-02 02:56:33 +0200
commit70495ffed262f268e2b8dc90617164b175341a78 (patch)
tree0a0dacc0b6da1ca781f38c2bd3855d433c15486e /bin
parentb11434ed1255f3c6a967be093e6e193780bc7ed5 (diff)
downloadarching-kaos-tools-70495ffed262f268e2b8dc90617164b175341a78.tar.gz
arching-kaos-tools-70495ffed262f268e2b8dc90617164b175341a78.tar.bz2
arching-kaos-tools-70495ffed262f268e2b8dc90617164b175341a78.zip
Spacings adjustment
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-cjdns-scanner2
-rwxr-xr-xbin/ak-find-latest-mined-sblock4
-rwxr-xr-xbin/ak-folders1
-rwxr-xr-xbin/ak-ipfs-check2
-rwxr-xr-xbin/ak-mempool1
-rwxr-xr-xbin/ak-profile4
-rwxr-xr-xbin/ak-reference2
-rwxr-xr-xbin/ak-repositories2
-rwxr-xr-xbin/ak-sm-filejoiner4
-rwxr-xr-xbin/ak-zblock-pack1
10 files changed, 8 insertions, 15 deletions
diff --git a/bin/ak-cjdns-scanner b/bin/ak-cjdns-scanner
index 81c3814..749472e 100755
--- a/bin/ak-cjdns-scanner
+++ b/bin/ak-cjdns-scanner
@@ -1,7 +1,7 @@
#!/bin/bash
#
# Needs CJDNS tools in your PATH
-#
+#
# Ref: https://github.com/cjdelisle/cjdns
#
counter=0
diff --git a/bin/ak-find-latest-mined-sblock b/bin/ak-find-latest-mined-sblock
index c3d9e33..cf25552 100755
--- a/bin/ak-find-latest-mined-sblock
+++ b/bin/ak-find-latest-mined-sblock
@@ -68,9 +68,7 @@ do
then
max="${counters[${value}]}"
max_holder="${value}"
- logitnowint "INFO" "New MAX $max on $max_holder"
-
-
+ logit "INFO" "New MAX $max on $max_holder"
fi
done
echo '{"latest_block":"'$max_holder'"}'
diff --git a/bin/ak-folders b/bin/ak-folders
index 33d9c2f..7116263 100755
--- a/bin/ak-folders
+++ b/bin/ak-folders
@@ -75,7 +75,6 @@ _ak_modules_folders_title(){
echo "$PROGRAM - Folder block creator"
}
-
if [ ! -z $1 ]; then
case $1 in
-h | --help) _ak_modules_folders_usage; exit;;
diff --git a/bin/ak-ipfs-check b/bin/ak-ipfs-check
index 30ebf4d..e2c3955 100755
--- a/bin/ak-ipfs-check
+++ b/bin/ak-ipfs-check
@@ -4,7 +4,6 @@ logit(){
ak-logthis "$PROGRAM" "$1" "$2"
}
-
ak-ipfs-files-ls /zarchive > /dev/null
if [ $? != 0 ]
then
@@ -13,7 +12,6 @@ else
logit "INFO" "/zarchive OK"
fi
-
ak-ipfs-files-ls /zlatest > /dev/null
if [ $? != 0 ]
then
diff --git a/bin/ak-mempool b/bin/ak-mempool
index 83b0dfb..1baf4c8 100755
--- a/bin/ak-mempool
+++ b/bin/ak-mempool
@@ -7,7 +7,6 @@
ak-ipfs-swarm-peers > tmp_peers
-
while IFS="" read -r p || [ -n "$p" ]
do
peer="$(echo "$p" | sed -e 's/^.*\///')"
diff --git a/bin/ak-profile b/bin/ak-profile
index e7e6e48..84ead70 100755
--- a/bin/ak-profile
+++ b/bin/ak-profile
@@ -18,7 +18,6 @@ else
logit "INFO" "zprofiledir found"
fi
-
# This is working with DATA blocks. DATA that matched profile/add ACTION
#
# The profile settings/configuration is part of the blockchain produced.
@@ -124,6 +123,7 @@ _ak_modules_profile_index(){
done
echo "}"
}
+
_ak_modules_profile_import(){
if [ ! -z $1 ]
then
@@ -179,6 +179,7 @@ EOF
cd $ZPROFILEDIR
rm -rf "$TEMPASSIN"
}
+
_ak_modules_profile_usage(){
echo "Usage:"
echo " $PROGRAM command [options]"
@@ -199,6 +200,7 @@ _ak_modules_profile_usage(){
echo ""
exit 0
}
+
if [ ! -z $1 ]; then
case $1 in
-h | --help) _ak_modules_profile_usage; exit;;
diff --git a/bin/ak-reference b/bin/ak-reference
index 5b58113..4e450e2 100755
--- a/bin/ak-reference
+++ b/bin/ak-reference
@@ -21,7 +21,7 @@ _ak_modules_reference_create(){
$1
$2
EOF
-
+
else
vi $REFERENCEFILE
fi
diff --git a/bin/ak-repositories b/bin/ak-repositories
index 1429341..c148a81 100755
--- a/bin/ak-repositories
+++ b/bin/ak-repositories
@@ -88,7 +88,6 @@ append-if-needed(){
fi
}
-
add(){
PROJECT="$1"
PROJECTDIR="$REPODIR/$PROJECT"
@@ -119,6 +118,7 @@ add(){
index(){
ak-ipfs-key-list-full | grep -e '\.git'
}
+
set-as-profile(){
IPFS=$(ak-ipfs-add $REPOSTORE)
if [ $? == 0 ]
diff --git a/bin/ak-sm-filejoiner b/bin/ak-sm-filejoiner
index 6850104..69b1297 100755
--- a/bin/ak-sm-filejoiner
+++ b/bin/ak-sm-filejoiner
@@ -39,8 +39,6 @@ then
exit 1
fi
-
-
if [ ! -z $1 ]
then
MAPSFILE="$1"
@@ -63,7 +61,7 @@ then
cd $TMPWD
echo "$PWD"
-
+
# Final name we are going to rename to
OUTPUT="$(tail -n1 $MAPSDIR/$MAPSFILE | awk '{print $2}')"
diff --git a/bin/ak-zblock-pack b/bin/ak-zblock-pack
index 25377bc..6c4b8d4 100755
--- a/bin/ak-zblock-pack
+++ b/bin/ak-zblock-pack
@@ -38,7 +38,6 @@ usage(){
echo "zblocks directly from IPFS hashes refering to blocks."
}
-
main(){
# We check firstly if the encapsulated value of the "ipfs" key has already
# appeared in the zchain.