diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-12-26 06:55:54 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-12-26 06:55:54 +0200 |
commit | 92ae94d36bfb8730b8c07f14feca990e0701bb43 (patch) | |
tree | 32759976b03df13aaa1139aa2a19a45c1ef7e125 /bin | |
parent | 98b8d407cb4650234d15cfe4d9322ad3bfe6c341 (diff) | |
download | arching-kaos-tools-92ae94d36bfb8730b8c07f14feca990e0701bb43.tar.gz arching-kaos-tools-92ae94d36bfb8730b8c07f14feca990e0701bb43.tar.bz2 arching-kaos-tools-92ae94d36bfb8730b8c07f14feca990e0701bb43.zip |
Added follow tool
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/follow | 14 |
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 |