2020-05-19 18:40:50 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-05-19 20:43:35 +02:00
|
|
|
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
|
|
|
|
|
|
|
|
sudo systemctl stop ipfs
|
|
|
|
|
2020-05-19 18:40:50 +02:00
|
|
|
shopt -s extglob
|
2020-05-19 20:43:35 +02:00
|
|
|
cd /home/$YOU || exit 1
|
|
|
|
rm -rf .ipfs/
|
2020-05-19 18:40:50 +02:00
|
|
|
|
2020-05-20 02:56:59 +02:00
|
|
|
[[ -d .zen ]] && cd .zen || exit 1
|
|
|
|
[[ $(echo "${PWD##*/}") == .zen ]] && rm -rf !(astroport)
|