YOU
This commit is contained in:
parent
815eb1564c
commit
3e0cfbb5fc
|
@ -1,3 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
########################################################################
|
||||||
|
# Author:
|
||||||
|
# Version: 0.1
|
||||||
|
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
||||||
|
########################################################################
|
||||||
|
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) && [[ ! $YOU ]] && echo "ipfs NOT RUNNING. EXIT" && exit 1
|
||||||
|
|
||||||
cat $HOME/.zen/{ipfs,ipfs_swarm}/.*/astroport/kodi/vstream/YASTRXBIAN | sort | uniq | tail -n +2
|
cat /home/$YOU/.zen/{ipfs,ipfs_swarm}/.*/astroport/kodi/vstream/YASTRXBIAN | sort | uniq | tail -n +2
|
||||||
|
|
Loading…
Reference in New Issue