aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2021-12-26 06:55:54 +0200
committerkaotisk <kaotisk@arching-kaos.com>2021-12-26 06:55:54 +0200
commit92ae94d36bfb8730b8c07f14feca990e0701bb43 (patch)
tree32759976b03df13aaa1139aa2a19a45c1ef7e125
parent98b8d407cb4650234d15cfe4d9322ad3bfe6c341 (diff)
downloadarching-kaos-tools-92ae94d36bfb8730b8c07f14feca990e0701bb43.tar.gz
arching-kaos-tools-92ae94d36bfb8730b8c07f14feca990e0701bb43.tar.bz2
arching-kaos-tools-92ae94d36bfb8730b8c07f14feca990e0701bb43.zip
Added follow tool
-rwxr-xr-xbin/follow14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/follow b/bin/follow
new file mode 100755
index 0000000..76851e0
--- /dev/null
+++ b/bin/follow
@@ -0,0 +1,14 @@
+#!/bin/bash
+FOLLOWING="$HOME/.arching-kaos/following"
+if [ ! -z $1 ]
+then
+ echo $1 >> $FOLLOWING
+ IPFS=$(ipfs add -q $FOLLOWING)
+ if [ $? == 0 ]
+ then
+ profile set following $IPFS
+ else
+ logthis "Addition aborted"
+ exit 1
+ fi
+fi