diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-30 22:39:50 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-30 22:39:50 +0300 |
commit | de53c55383ed07e0b65f69d33f5284a31d791664 (patch) | |
tree | f1e426c88a5d0a48ca463eccd21c1d12524d8f3a /bin/ak-unfollow | |
parent | 9531bcdffff4e44e8aadb000f0b577d59a32ea3f (diff) | |
download | arching-kaos-tools-de53c55383ed07e0b65f69d33f5284a31d791664.tar.gz arching-kaos-tools-de53c55383ed07e0b65f69d33f5284a31d791664.tar.bz2 arching-kaos-tools-de53c55383ed07e0b65f69d33f5284a31d791664.zip |
Refactoring
Diffstat (limited to 'bin/ak-unfollow')
-rwxr-xr-x | bin/ak-unfollow | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/bin/ak-unfollow b/bin/ak-unfollow deleted file mode 100755 index c23aeef..0000000 --- a/bin/ak-unfollow +++ /dev/null @@ -1,30 +0,0 @@ -#!/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 - _ak_log_error "sed didn't found $search" - exit 1 - fi - IPFS="$(_ak_ipfs_add $FOLLOWING)" - if [ $? != 0 ] - then - _ak_log_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 - - |