aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-follow
blob: 9177c7f4f590bc7f8266ea848861344b8449212d (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=$(ak-ipfs-add $FOLLOWING)
	if [ $? == 0 ]
	then
		profile set following $IPFS
	else
		ak-logthis "Addition aborted"
		exit 1
	fi
fi