#!/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 \n" $PROGRAM exit 1