#!/bin/bash PROGRAM="$(basename $0)" source $AK_LIBDIR/_ak_config source $AK_LIBDIR/_ak_ipfs FOLLOWING="$HOME/.arching-kaos/following" fentries="$(cat $FOLLOWING)" if [ ! -z $1 ] then search="$1" sed -i -e 's,'"$search"',,g' $FOLLOWING if [ $? != 0 ] then logit "ERROR" "sed didn't found $search" exit 1 fi IPFS="$(_ak_ipfs_add $FOLLOWING)" if [ $? != 0 ] then logit "ERROR" "IPFS problem" exit 1 fi ak-profile set repositories "$IPFS" exit 0 else echo "Who to unfollow?" echo "Type following to see them" exit 1 fi