follow symlinks

This commit is contained in:
ge 2023-07-01 16:35:23 +03:00
parent a767c42554
commit fe9ea3064d
2 changed files with 3 additions and 3 deletions

4
pmgr
View File

@ -2,7 +2,7 @@
# pmgr -- proxy manager
PMGR_VERSION=0.0.1
PMGR_VERSION=0.0.2
PMGR_WORKDIR="${PMGR_WORKDIR:-"$HOME"/.config/pmgr}"
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'
for file in $(find "$PMGR_ENV_DIR" -type f); do
for file in $(find "$PMGR_ENV_DIR" -type f -follow); do
unit="${file##*/}"
if systemctl --user is-active "$unit" >/dev/null 2>&1; then
active='\033[32mactive\033[0m'

2
pmgr.1
View File

@ -1,5 +1,5 @@
.\" vim: set filetype=groff:
.TH PMGR 1 "2023-04-25" "pmgr 0.0.1"
.TH PMGR 1 "2023-04-25" "pmgr 0.0.2"
.SH NAME
pmgr - proxy manager based on systemd user units.