aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-follow
blob: a72ba8bf681f3e451c165022cdb5699a5110337c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
		ak-logthis "Addition aborted"
		exit 1
	fi
fi