follow symlinks
This commit is contained in:
parent
a767c42554
commit
fe9ea3064d
4
pmgr
4
pmgr
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# pmgr -- proxy manager
|
# pmgr -- proxy manager
|
||||||
|
|
||||||
PMGR_VERSION=0.0.1
|
PMGR_VERSION=0.0.2
|
||||||
PMGR_WORKDIR="${PMGR_WORKDIR:-"$HOME"/.config/pmgr}"
|
PMGR_WORKDIR="${PMGR_WORKDIR:-"$HOME"/.config/pmgr}"
|
||||||
PMGR_ENV_DIR="${PMGR_ENV_DIR:-"$PMGR_WORKDIR"/environment}"
|
PMGR_ENV_DIR="${PMGR_ENV_DIR:-"$PMGR_WORKDIR"/environment}"
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ list_proxies()
|
|||||||
|
|
||||||
{
|
{
|
||||||
printf '\e[1mHOST PROTO FILE STATUS AUTOSTART\033[0m\n'
|
printf '\e[1mHOST PROTO FILE STATUS AUTOSTART\033[0m\n'
|
||||||
for file in $(find "$PMGR_ENV_DIR" -type f); do
|
for file in $(find "$PMGR_ENV_DIR" -type f -follow); do
|
||||||
unit="${file##*/}"
|
unit="${file##*/}"
|
||||||
if systemctl --user is-active "$unit" >/dev/null 2>&1; then
|
if systemctl --user is-active "$unit" >/dev/null 2>&1; then
|
||||||
active='\033[32mactive\033[0m'
|
active='\033[32mactive\033[0m'
|
||||||
|
Loading…
Reference in New Issue
Block a user