blob: dea706f7a82b888dcd373306eebb723dd7241ec6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
FOLLOWING="$HOME/.arching-kaos/following"
PROGRAM="$(basename $0)"
source $AK_LIBDIR/_ak_logit
source $AK_LIBDIR/_ak_ipfs
if [ ! -z $1 ]
then
grep $1 $FOLLOWING
if [ $? == 0 ]
then
logit "ERROR" "Already exists"
exit 1
fi
echo $1 >> $FOLLOWING
IPFS=$(_ak_ipfs_add $FOLLOWING)
if [ $? != 0 ]
then
logit "ERROR" "Addition failed"
exit 1
fi
ak-profile set following $IPFS
exit 0
fi
printf "Usage:\n\t%s <AKID_IPFS_CID_v0>\n" $PROGRAM
exit 1
|