aboutsummaryrefslogtreecommitdiff
path: root/bin/follow
blob: 76851e002c188d52a1ee8a0541c0bd0546f65c62 (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
		logthis "Addition aborted"
		exit 1
	fi
fi